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 /ucb | |
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 'ucb')
-rw-r--r-- | ucb/source/core/ucb.cxx | 2 | ||||
-rw-r--r-- | ucb/source/core/ucbstore.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchydatasource.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchyprovider.cxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/ucb/source/core/ucb.cxx b/ucb/source/core/ucb.cxx index 54c7365d2305..0bd9b9266aa9 100644 --- a/ucb/source/core/ucb.cxx +++ b/ucb/source/core/ucb.cxx @@ -900,7 +900,7 @@ bool UniversalContentBroker::getContentProviderData( uno::Reference< uno::XInterface > xInterface( xConfigProv->createInstanceWithArguments( - OUString( "com.sun.star.configuration.ConfigurationAccess" ), + "com.sun.star.configuration.ConfigurationAccess", aArguments ) ); if ( !m_xNotifier.is() ) diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx index f63b480749d2..318c1b14e1f6 100644 --- a/ucb/source/core/ucbstore.cxx +++ b/ucb/source/core/ucbstore.cxx @@ -987,7 +987,7 @@ Reference< XInterface > PropertySetRegistry::getRootConfigReadAccess() m_pImpl->m_xRootReadAccess = m_pImpl->m_xConfigProvider->createInstanceWithArguments( - OUString( "com.sun.star.configuration.ConfigurationAccess" ), + "com.sun.star.configuration.ConfigurationAccess", aArguments ); if ( m_pImpl->m_xRootReadAccess.is() ) @@ -1049,7 +1049,7 @@ Reference< XInterface > PropertySetRegistry::getConfigWriteAccess( m_pImpl->m_xRootWriteAccess = m_pImpl->m_xConfigProvider->createInstanceWithArguments( - OUString( "com.sun.star.configuration.ConfigurationUpdateAccess" ), + "com.sun.star.configuration.ConfigurationUpdateAccess", aArguments ); OSL_ENSURE( m_pImpl->m_xRootWriteAccess.is(), diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx index 115810c7942a..217aaabb8e31 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx @@ -496,7 +496,7 @@ HierarchyDataSource::createInstanceWithArguments( { // Create configuration read-only access object. xConfigAccess = xProv->createInstanceWithArguments( - OUString( "com.sun.star.configuration.ConfigurationAccess" ), + "com.sun.star.configuration.ConfigurationAccess", aNewArgs ); } else @@ -515,7 +515,7 @@ HierarchyDataSource::createInstanceWithArguments( // Create configuration read-write access object. xConfigAccess = xProv->createInstanceWithArguments( - OUString( "com.sun.star.configuration.ConfigurationUpdateAccess" ), + "com.sun.star.configuration.ConfigurationUpdateAccess", aNewArgs ); } } diff --git a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx index 18dd8f0bcd98..241ea551348c 100644 --- a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx +++ b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx @@ -249,7 +249,7 @@ HierarchyContentProvider::getRootConfigReadNameAccess( (*it).second.xRootReadAccess = uno::Reference< container::XHierarchicalNameAccess >( xConfigProv->createInstanceWithArguments( - OUString( "com.sun.star.ucb.HierarchyDataReadAccess" ), + "com.sun.star.ucb.HierarchyDataReadAccess", aArguments ), uno::UNO_QUERY ); } |