summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-02 15:28:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-04 20:11:39 +0200
commitb9cc4575c6b3f25c971fc2d8c82f8254e744eea0 (patch)
tree73fdb06625d9c9bf6edf38002f7b66b7e95a6a89 /toolkit
parent3a394f3f8a15623e2ffb9fbcad81bbb3b9856abe (diff)
replace createFromAscii with OUString literals in OAccessibleControlContext
Change-Id: I48c3dcff57beef905f1d72cef871e284de2da22a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167117 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/inc/controls/accessiblecontrolcontext.hxx2
-rw-r--r--toolkit/source/controls/accessiblecontrolcontext.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/toolkit/inc/controls/accessiblecontrolcontext.hxx b/toolkit/inc/controls/accessiblecontrolcontext.hxx
index 416984c3344c..92c3fdf81870 100644
--- a/toolkit/inc/controls/accessiblecontrolcontext.hxx
+++ b/toolkit/inc/controls/accessiblecontrolcontext.hxx
@@ -81,7 +81,7 @@ namespace toolkit
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
// retrieves the value of a string property from the model, if the property is present
- OUString getModelStringProperty( const char* _pPropertyName );
+ OUString getModelStringProperty( const OUString& _pPropertyName );
// starts listening at the control model (currently for disposal only)
void startModelListening( );
diff --git a/toolkit/source/controls/accessiblecontrolcontext.cxx b/toolkit/source/controls/accessiblecontrolcontext.cxx
index 761821bce601..db5f9c03b183 100644
--- a/toolkit/source/controls/accessiblecontrolcontext.cxx
+++ b/toolkit/source/controls/accessiblecontrolcontext.cxx
@@ -143,14 +143,14 @@ namespace toolkit
OUString SAL_CALL OAccessibleControlContext::getAccessibleDescription( )
{
OContextEntryGuard aGuard( this );
- return getModelStringProperty( "HelpText" );
+ return getModelStringProperty( u"HelpText"_ustr );
}
OUString SAL_CALL OAccessibleControlContext::getAccessibleName( )
{
OContextEntryGuard aGuard( this );
- return getModelStringProperty( "Name" );
+ return getModelStringProperty( u"Name"_ustr );
}
@@ -191,7 +191,7 @@ namespace toolkit
}
- OUString OAccessibleControlContext::getModelStringProperty( const char* _pPropertyName )
+ OUString OAccessibleControlContext::getModelStringProperty( const OUString& _pPropertyName )
{
OUString sReturn;
try
@@ -199,7 +199,7 @@ namespace toolkit
if ( !m_xModelPropsInfo.is() && m_xControlModel.is() )
m_xModelPropsInfo = m_xControlModel->getPropertySetInfo();
- OUString sPropertyName( OUString::createFromAscii( _pPropertyName ) );
+ OUString sPropertyName( _pPropertyName );
if ( m_xModelPropsInfo.is() && m_xModelPropsInfo->hasPropertyByName( sPropertyName ) )
m_xControlModel->getPropertyValue( sPropertyName ) >>= sReturn;
}