diff options
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/accessibility/accessibledialogcontrolshape.cxx | 7 | ||||
-rw-r--r-- | basctl/source/inc/accessibledialogcontrolshape.hxx | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/basctl/source/accessibility/accessibledialogcontrolshape.cxx b/basctl/source/accessibility/accessibledialogcontrolshape.cxx index b5ebc70fb57a..7e977e859d43 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 ffdf0217c3f6..b370e85b6c2d 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 ); |