diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-30 08:40:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-30 08:59:59 +0000 |
commit | 3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd (patch) | |
tree | 6e7f5d288cf65935b3ed1f0b88200d32d2f016f0 /vcl/source | |
parent | 2e528df76b168a221c6d251d9b076bce5ba051a3 (diff) |
UNO: no need to use OUString constructor when calling createInstance
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526
Reviewed-on: https://gerrit.libreoffice.org/19682
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/filter/FilterConfigCache.cxx | 3 | ||||
-rw-r--r-- | vcl/source/filter/FilterConfigItem.cxx | 4 | ||||
-rw-r--r-- | vcl/source/gdi/print.cxx | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/vcl/source/filter/FilterConfigCache.cxx b/vcl/source/filter/FilterConfigCache.cxx index 8df7bfb7edab..e50dcabc725a 100644 --- a/vcl/source/filter/FilterConfigCache.cxx +++ b/vcl/source/filter/FilterConfigCache.cxx @@ -140,8 +140,7 @@ Reference< XInterface > openConfig(const char* sPackage) lParams[0] = makeAny(aParam); // get access to file - xCfg = xConfigProvider->createInstanceWithArguments( - OUString( "com.sun.star.configuration.ConfigurationAccess" ), lParams); + xCfg = xConfigProvider->createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", lParams); } catch(const RuntimeException&) { throw; } diff --git a/vcl/source/filter/FilterConfigItem.cxx b/vcl/source/filter/FilterConfigItem.cxx index 119485971445..34ad8af03eda 100644 --- a/vcl/source/filter/FilterConfigItem.cxx +++ b/vcl/source/filter/FilterConfigItem.cxx @@ -69,7 +69,7 @@ static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv, co try { xReadAccess = rXCfgProv->createInstanceWithArguments( - OUString( "com.sun.star.configuration.ConfigurationAccess" ), + "com.sun.star.configuration.ConfigurationAccess", aArguments ); } catch (const ::com::sun::star::uno::Exception&) @@ -134,7 +134,7 @@ void FilterConfigItem::ImpInitTree( const OUString& rSubTree ) try { xUpdatableView = xCfgProv->createInstanceWithArguments( - OUString( "com.sun.star.configuration.ConfigurationUpdateAccess" ), + "com.sun.star.configuration.ConfigurationUpdateAccess", aArguments ); if ( xUpdatableView.is() ) xPropSet = Reference< XPropertySet >( xUpdatableView, UNO_QUERY ); diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index 02c190c21426..0732483b3915 100644 --- a/vcl/source/gdi/print.cxx +++ b/vcl/source/gdi/print.cxx @@ -159,7 +159,7 @@ bool PrinterOptions::ReadFromConfig( bool i_bFile ) aArgs.getArray()[0] <<= aVal; xConfigAccess = Reference< XNameAccess >( xConfigProvider->createInstanceWithArguments( - OUString( "com.sun.star.configuration.ConfigurationAccess" ), aArgs ), + "com.sun.star.configuration.ConfigurationAccess", aArgs ), UNO_QUERY ); if( xConfigAccess.is() ) { |