basctl/source/accessibility/accessibledialogcontrolshape.cxx | 7 +++---- basctl/source/inc/accessibledialogcontrolshape.hxx | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-)
New commits: commit 111d9033b6b74fd1fe138ff741d7c14c85e226c9 Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Jan 27 17:08:03 2017 +0100 Just pass in OUString directly Change-Id: Iba5289abf96b15e833cb85e96d4e60b2285271be diff --git a/basctl/source/accessibility/accessibledialogcontrolshape.cxx b/basctl/source/accessibility/accessibledialogcontrolshape.cxx index b5ebc70..7e977e8 100644 --- a/basctl/source/accessibility/accessibledialogcontrolshape.cxx +++ b/basctl/source/accessibility/accessibledialogcontrolshape.cxx @@ -183,7 +183,7 @@ vcl::Window* AccessibleDialogControlShape::GetWindow() const } -OUString AccessibleDialogControlShape::GetModelStringProperty( const sal_Char* pPropertyName ) +OUString AccessibleDialogControlShape::GetModelStringProperty( OUString const & pPropertyName ) { OUString sReturn; @@ -191,10 +191,9 @@ OUString AccessibleDialogControlShape::GetModelStringProperty( const sal_Char* p { if ( m_xControlModel.is() ) { - OUString sPropertyName( OUString::createFromAscii( pPropertyName ) ); Reference< XPropertySetInfo > xInfo = m_xControlModel->getPropertySetInfo(); - if ( xInfo.is() && xInfo->hasPropertyByName( sPropertyName ) ) - m_xControlModel->getPropertyValue( sPropertyName ) >>= sReturn; + if ( xInfo.is() && xInfo->hasPropertyByName( pPropertyName ) ) + m_xControlModel->getPropertyValue( pPropertyName ) >>= sReturn; } } catch ( const Exception& ) diff --git a/basctl/source/inc/accessibledialogcontrolshape.hxx b/basctl/source/inc/accessibledialogcontrolshape.hxx index ffdf021..b370e85 100644 --- a/basctl/source/inc/accessibledialogcontrolshape.hxx +++ b/basctl/source/inc/accessibledialogcontrolshape.hxx @@ -74,7 +74,7 @@ protected: vcl::Window* GetWindow() const; - OUString GetModelStringProperty( const sal_Char* pPropertyName ); + OUString GetModelStringProperty( OUString const & pPropertyName ); void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits