summaryrefslogtreecommitdiff
path: root/toolkit/source/controls
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/controls')
-rw-r--r--toolkit/source/controls/unocontrol.cxx3
-rw-r--r--toolkit/source/controls/unocontrolmodel.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx
index 8f7412437667..8207e31fc095 100644
--- a/toolkit/source/controls/unocontrol.cxx
+++ b/toolkit/source/controls/unocontrol.cxx
@@ -1436,8 +1436,7 @@ sal_Bool UnoControl::supportsService( const OUString& rServiceName )
Sequence< OUString > UnoControl::getSupportedServiceNames( )
{
- OUString sName( "com.sun.star.awt.UnoControl" );
- return Sequence< OUString >( &sName, 1 );
+ return { "com.sun.star.awt.UnoControl" };
}
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx
index fa27371cc914..cae4b6fee156 100644
--- a/toolkit/source/controls/unocontrolmodel.cxx
+++ b/toolkit/source/controls/unocontrolmodel.cxx
@@ -1050,8 +1050,7 @@ sal_Bool UnoControlModel::supportsService( const OUString& rServiceName )
css::uno::Sequence< OUString > UnoControlModel::getSupportedServiceNames( )
{
- OUString sName( "com.sun.star.awt.UnoControlModel" );
- return Sequence< OUString >( &sName, 1 );
+ return { "com.sun.star.awt.UnoControlModel" };
}
sal_Bool UnoControlModel::convertFastPropertyValue( Any & rConvertedValue, Any & rOldValue, sal_Int32 nPropId, const Any& rValue )