diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-27 17:08:03 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-27 17:08:03 +0100 |
commit | 111d9033b6b74fd1fe138ff741d7c14c85e226c9 (patch) | |
tree | 6af672ec1b43e28f3dbd479383b929a5ffb46527 /basctl | |
parent | 70dee11c2e15e90fbd41bf331e67c1d28e094e35 (diff) |
Just pass in OUString directly
Change-Id: Iba5289abf96b15e833cb85e96d4e60b2285271be
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 ); |