summaryrefslogtreecommitdiff
path: root/sw/qa
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 /sw/qa
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 'sw/qa')
-rw-r--r--sw/qa/core/filters-test.cxx3
-rw-r--r--sw/qa/core/layout-test.cxx3
-rw-r--r--sw/qa/core/macros-test.cxx3
3 files changed, 3 insertions, 6 deletions
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index 0b9d1aefc2be..03db7a932e43 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -213,8 +213,7 @@ void SwFiltersTest::setUp()
//This is a bit of a fudge, we do this to ensure that SwGlobals::ensure,
//which is a private symbol to us, gets called
m_xWriterComponent =
- getMultiServiceFactory()->createInstance(OUString(
- "com.sun.star.comp.Writer.TextDocument"));
+ getMultiServiceFactory()->createInstance("com.sun.star.comp.Writer.TextDocument");
CPPUNIT_ASSERT_MESSAGE("no writer component!", m_xWriterComponent.is());
}
diff --git a/sw/qa/core/layout-test.cxx b/sw/qa/core/layout-test.cxx
index 7539713c70b9..6261e3f7100f 100644
--- a/sw/qa/core/layout-test.cxx
+++ b/sw/qa/core/layout-test.cxx
@@ -84,8 +84,7 @@ void SwLayoutTest::setUp()
// This is a bit of a fudge, we do this to ensure that SwGlobals::ensure,
// which is a private symbol to us, gets called
m_xWriterComponent =
- getMultiServiceFactory()->createInstance(OUString(
- "com.sun.star.comp.Writer.TextDocument"));
+ getMultiServiceFactory()->createInstance("com.sun.star.comp.Writer.TextDocument");
CPPUNIT_ASSERT_MESSAGE("no calc component!", m_xWriterComponent.is());
mxDesktop = com::sun::star::frame::Desktop::create( comphelper::getComponentContext(getMultiServiceFactory()) );
}
diff --git a/sw/qa/core/macros-test.cxx b/sw/qa/core/macros-test.cxx
index 4aed8dc17152..89b9f0f7dfa4 100644
--- a/sw/qa/core/macros-test.cxx
+++ b/sw/qa/core/macros-test.cxx
@@ -502,8 +502,7 @@ void SwMacrosTest::setUp()
// This is a bit of a fudge, we do this to ensure that SwGlobals::ensure,
// which is a private symbol to us, gets called
m_xWriterComponent =
- getMultiServiceFactory()->createInstance(OUString(
- "com.sun.star.comp.Writer.TextDocument"));
+ getMultiServiceFactory()->createInstance("com.sun.star.comp.Writer.TextDocument");
CPPUNIT_ASSERT_MESSAGE("no calc component!", m_xWriterComponent.is());
mxDesktop = com::sun::star::frame::Desktop::create( comphelper::getComponentContext(getMultiServiceFactory()) );
}