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 /unotools | |
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 'unotools')
-rw-r--r-- | unotools/source/config/configmgr.cxx | 4 | ||||
-rw-r--r-- | unotools/source/config/fontcfg.cxx | 4 | ||||
-rw-r--r-- | unotools/source/config/lingucfg.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx index 870cc8d31beb..356a21d6df33 100644 --- a/unotools/source/config/configmgr.cxx +++ b/unotools/source/config/configmgr.cxx @@ -77,7 +77,7 @@ OUString getConfigurationString(OUString const & module, OUString const & path) return css::uno::Reference< css::container::XHierarchicalNameAccess >( getConfigurationProvider()->createInstanceWithArguments( - OUString("com.sun.star.configuration.ConfigurationAccess"), + "com.sun.star.configuration.ConfigurationAccess", args), css::uno::UNO_QUERY_THROW)-> getByHierarchicalName(path).get< OUString >(); @@ -157,7 +157,7 @@ utl::ConfigManager::acquireTree(utl::ConfigItem & item) { } return css::uno::Reference< css::container::XHierarchicalNameAccess >( getConfigurationProvider()->createInstanceWithArguments( - OUString("com.sun.star.configuration.ConfigurationUpdateAccess"), + "com.sun.star.configuration.ConfigurationUpdateAccess", args), css::uno::UNO_QUERY_THROW); } diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx index 8053d9513d4c..df4e45597c55 100644 --- a/unotools/source/config/fontcfg.cxx +++ b/unotools/source/config/fontcfg.cxx @@ -115,7 +115,7 @@ DefaultFontConfiguration::DefaultFontConfiguration() aArgs.getArray()[0] <<= aVal; m_xConfigAccess = Reference< XNameAccess >( - m_xConfigProvider->createInstanceWithArguments( OUString( "com.sun.star.configuration.ConfigurationAccess" ), + m_xConfigProvider->createInstanceWithArguments( "com.sun.star.configuration.ConfigurationAccess", aArgs ), UNO_QUERY ); if( m_xConfigAccess.is() ) @@ -376,7 +376,7 @@ FontSubstConfiguration::FontSubstConfiguration() : aArgs.getArray()[0] <<= aVal; m_xConfigAccess = Reference< XNameAccess >( - m_xConfigProvider->createInstanceWithArguments( OUString( "com.sun.star.configuration.ConfigurationAccess" ), + m_xConfigProvider->createInstanceWithArguments( "com.sun.star.configuration.ConfigurationAccess", aArgs ), UNO_QUERY ); if( m_xConfigAccess.is() ) diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx index 39e3877d4de2..5249ac567a89 100644 --- a/unotools/source/config/lingucfg.cxx +++ b/unotools/source/config/lingucfg.cxx @@ -1078,7 +1078,7 @@ uno::Reference< util::XChangesBatch > SvtLinguConfig::GetMainUpdateAccess() cons aProps[0] <<= aValue; m_xMainUpdateAccess = uno::Reference< util::XChangesBatch >( xConfigurationProvider->createInstanceWithArguments( - OUString("com.sun.star.configuration.ConfigurationUpdateAccess"), aProps), + "com.sun.star.configuration.ConfigurationUpdateAccess", aProps), uno::UNO_QUERY_THROW ); } catch (uno::Exception &) |