summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:35:00 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:35:00 +0100
commit7cf6736df809f7e74815a60152c23a448c27a1fa (patch)
tree91b87cd76c6cdf5e2768783fa7554a6915682eea /configmgr
parent9acf5eab9af5bb620af1913f100c9ba997301643 (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: Iab64ec9b325da65b90d79f3c986e97774825f6e2
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/qa/unit/test.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx
index 4195b7b3e892..d31dd94d92b0 100644
--- a/configmgr/qa/unit/test.cxx
+++ b/configmgr/qa/unit/test.cxx
@@ -153,8 +153,8 @@ void RecursiveTest::test()
{
properties_.set(
test_.createUpdateAccess(
- OUString("/org.openoffice.Office.UI.GenericCommands/UserInterface/Commands/"
- ".uno:WebHtml")),
+ "/org.openoffice.Office.UI.GenericCommands/UserInterface/Commands/"
+ ".uno:WebHtml"),
css::uno::UNO_QUERY_THROW);
properties_->addPropertyChangeListener("Label", this);
step();
@@ -201,9 +201,9 @@ SimpleRecursiveTest::SimpleRecursiveTest(
void SimpleRecursiveTest::step() const
{
test_.setKey(
- OUString("/org.openoffice.Office.UI.GenericCommands/UserInterface/Commands/"
- ".uno:WebHtml"),
- OUString("Label"),
+ "/org.openoffice.Office.UI.GenericCommands/UserInterface/Commands/"
+ ".uno:WebHtml",
+ "Label",
css::uno::makeAny(OUString("step")));
}
@@ -230,8 +230,8 @@ void Test::testKeyFetch()
void Test::testKeySet()
{
setKey(
- OUString("/org.openoffice.System/L10N"),
- OUString("Locale"),
+ "/org.openoffice.System/L10N",
+ "Locale",
css::uno::makeAny(OUString("com.sun.star.configuration.backend.LocaleBackend UILocale")));
OUString s;
CPPUNIT_ASSERT(
@@ -245,8 +245,8 @@ void Test::testKeySet()
void Test::testKeyReset()
{
if (resetKey(
- OUString("/org.openoffice.System/L10N"),
- OUString("Locale")))
+ "/org.openoffice.System/L10N",
+ "Locale"))
{
OUString s;
CPPUNIT_ASSERT(
@@ -271,8 +271,8 @@ void Test::testSetSetMemberName()
css::uno::Reference< css::container::XNameAccess > access(
createUpdateAccess(
- OUString("/org.openoffice.Office.UI.GenericCommands/UserInterface/"
- "Commands")),
+ "/org.openoffice.Office.UI.GenericCommands/UserInterface/"
+ "Commands"),
css::uno::UNO_QUERY_THROW);
css::uno::Reference< css::container::XNamed > member;
access->getByName(".uno:FontworkGalleryFloater") >>= member;
@@ -330,8 +330,8 @@ void Test::testReadCommands()
{
css::uno::Reference< css::container::XNameAccess > access(
createViewAccess(
- OUString("/org.openoffice.Office.UI.GenericCommands/UserInterface/"
- "Commands")),
+ "/org.openoffice.Office.UI.GenericCommands/UserInterface/"
+ "Commands"),
css::uno::UNO_QUERY_THROW);
css::uno::Sequence< OUString > names(access->getElementNames());