Kaydet (Commit) 111d9033 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Just pass in OUString directly

Change-Id: Iba5289abf96b15e833cb85e96d4e60b2285271be
üst 70dee11c
......@@ -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& )
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment