summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-10-31 15:13:58 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-01 15:25:43 +0000
commitb5db48ada113206ac090e4a08f2ae211859103ed (patch)
tree5ca14a8e4209f18845476546953683b6adc860ab /sfx2
parent9da44ea99fe2fb4455b5e02ee8b178f22584254a (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 'sfx2')
-rw-r--r--sfx2/source/appl/imestatuswindow.cxx6
-rw-r--r--sfx2/source/dialog/mailmodel.cxx8
-rw-r--r--sfx2/source/doc/docfac.cxx2
-rw-r--r--sfx2/source/view/viewsh.cxx5
4 files changed, 8 insertions, 13 deletions
diff --git a/sfx2/source/appl/imestatuswindow.cxx b/sfx2/source/appl/imestatuswindow.cxx
index 8b49136c90c7..6163ccc2ebab 100644
--- a/sfx2/source/appl/imestatuswindow.cxx
+++ b/sfx2/source/appl/imestatuswindow.cxx
@@ -197,8 +197,7 @@ css::uno::Reference< css::beans::XPropertySet > ImeStatusWindow::getConfig()
throw css::lang::DisposedException();
if (!m_xContext.is())
throw css::uno::RuntimeException(
- OUString(
- "null comphelper::getProcessServiceFactory"),
+ OUString("null comphelper::getProcessServiceFactory"),
0);
css::uno::Reference< css::lang::XMultiServiceFactory > xProvider =
css::configuration::theDefaultProvider::get( m_xContext );
@@ -213,8 +212,7 @@ css::uno::Reference< css::beans::XPropertySet > ImeStatusWindow::getConfig()
m_xConfig
= css::uno::Reference< css::beans::XPropertySet >(
xProvider->createInstanceWithArguments(
- OUString(
- "com.sun.star.configuration.ConfigurationUpdateAccess"),
+ "com.sun.star.configuration.ConfigurationUpdateAccess",
aArgs),
css::uno::UNO_QUERY);
if (!m_xConfig.is())
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx
index a31b8ac13158..352babf489ba 100644
--- a/sfx2/source/dialog/mailmodel.cxx
+++ b/sfx2/source/dialog/mailmodel.cxx
@@ -324,9 +324,8 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat(
OUString aExtension;
css::uno::Reference< css::container::XContainerQuery > xContainerQuery(
- xSMGR->createInstance( OUString(
- "com.sun.star.document.FilterFactory" )),
- css::uno::UNO_QUERY );
+ xSMGR->createInstance( "com.sun.star.document.FilterFactory" ),
+ css::uno::UNO_QUERY );
if ( bStoreTo )
{
@@ -428,8 +427,7 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat(
else
{
css::uno::Reference< container::XNameAccess > xTypeDetection(
- xSMGR->createInstance( OUString(
- "com.sun.star.document.TypeDetection" )),
+ xSMGR->createInstance( "com.sun.star.document.TypeDetection" ),
css::uno::UNO_QUERY );
diff --git a/sfx2/source/doc/docfac.cxx b/sfx2/source/doc/docfac.cxx
index 4243181297f1..4630a83f3028 100644
--- a/sfx2/source/doc/docfac.cxx
+++ b/sfx2/source/doc/docfac.cxx
@@ -269,7 +269,7 @@ void SfxObjectFactory::SetSystemTemplate( const OUString& rServiceName, const OU
aArgs[2].Name = "URL";
aArgs[2].Value <<= OUString( rTemplateName );
- uno::Reference< frame::XLoadable > xLoadable( xFactory->createInstance( OUString( rServiceName ) ), uno::UNO_QUERY );
+ uno::Reference< frame::XLoadable > xLoadable( xFactory->createInstance( rServiceName ), uno::UNO_QUERY );
xLoadable->load( aArgs );
aArgs.realloc( 2 );
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index d2061e3b223a..18d0bb5ddd4d 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -673,9 +673,8 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq )
bool bHasLocation = !aLocation.isEmpty() && !bPrivateProtocol;
css::uno::Reference< css::container::XContainerQuery > xContainerQuery(
- xSMGR->createInstance( OUString(
- "com.sun.star.document.FilterFactory" )),
- css::uno::UNO_QUERY_THROW );
+ xSMGR->createInstance( "com.sun.star.document.FilterFactory" ),
+ css::uno::UNO_QUERY_THROW );
// Retrieve filter from type
sal_Int32 nFilterFlags = FILTERFLAG_EXPORT;