diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-10-31 15:13:58 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-01 15:25:43 +0000 |
commit | b5db48ada113206ac090e4a08f2ae211859103ed (patch) | |
tree | 5ca14a8e4209f18845476546953683b6adc860ab /ucb | |
parent | 9da44ea99fe2fb4455b5e02ee8b178f22584254a (diff) |
no need to use OUString constructor in call to createInstance
Change-Id: Iaf3d83ba1490cb1d97a5bd4d1f7cd6943d4a7296
Reviewed-on: https://gerrit.libreoffice.org/19704
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchydata.cxx | 10 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx | 5 |
2 files changed, 6 insertions, 9 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchydata.cxx b/ucb/source/ucp/hierarchy/hierarchydata.cxx index 2e73447251fd..366bd2d0d4f5 100644 --- a/ucb/source/ucp/hierarchy/hierarchydata.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydata.cxx @@ -298,7 +298,7 @@ bool HierarchyEntry::setData( uno::Reference< util::XChangesBatch > xBatch( m_xConfigProvider->createInstanceWithArguments( - OUString( READWRITE_SERVICE_NAME ), + READWRITE_SERVICE_NAME, aArguments ), uno::UNO_QUERY ); @@ -562,7 +562,7 @@ bool HierarchyEntry::move( xOldParentBatch = uno::Reference< util::XChangesBatch >( m_xConfigProvider->createInstanceWithArguments( - OUString( READWRITE_SERVICE_NAME ), + READWRITE_SERVICE_NAME, aArguments ), uno::UNO_QUERY ); @@ -586,7 +586,7 @@ bool HierarchyEntry::move( xNewParentBatch = uno::Reference< util::XChangesBatch >( m_xConfigProvider->createInstanceWithArguments( - OUString( READWRITE_SERVICE_NAME ), + READWRITE_SERVICE_NAME, aArguments ), uno::UNO_QUERY ); @@ -823,7 +823,7 @@ bool HierarchyEntry::remove() uno::Reference< util::XChangesBatch > xBatch( m_xConfigProvider->createInstanceWithArguments( - OUString( READWRITE_SERVICE_NAME ), + READWRITE_SERVICE_NAME, aArguments ), uno::UNO_QUERY ); @@ -1065,7 +1065,7 @@ HierarchyEntry::getRootReadAccess() m_xRootReadAccess = uno::Reference< container::XHierarchicalNameAccess >( m_xConfigProvider->createInstanceWithArguments( - OUString( READ_SERVICE_NAME ), + READ_SERVICE_NAME, aArguments ), uno::UNO_QUERY ); } diff --git a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx index 2318d3af2ddb..cef7495fb4f4 100644 --- a/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx +++ b/ucb/source/ucp/tdoc/tdoc_documentcontentfactory.cxx @@ -117,10 +117,7 @@ DocumentContentFactory::createDocumentContent( { xDocFac = uno::Reference< frame::XTransientDocumentsDocumentContentFactory >( - m_xSMgr->createInstance( - OUString( - "com.sun.star.ucb.TransientDocumentsContentProvider" ) - ), + m_xSMgr->createInstance("com.sun.star.ucb.TransientDocumentsContentProvider"), uno::UNO_QUERY ); } catch ( uno::Exception const & ) |