diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-10-19 10:30:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-10-20 16:13:38 +0200 |
commit | e7cf25437e590dd74a1f119b2942b2122cdff1aa (patch) | |
tree | 87bf3f5b10cad2d47d85d463e5409ae4d8d91e2b /testtools | |
parent | 99ac24b38743d323a52cf9c9c884c3b468635a55 (diff) |
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: testtools
Change-Id: Idc0de002b7ca4e370add311f91576adaaf354764
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158243
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'testtools')
-rw-r--r-- | testtools/source/bridgetest/bridgetest.cxx | 6 | ||||
-rw-r--r-- | testtools/source/bridgetest/cppobj.cxx | 4 | ||||
-rw-r--r-- | testtools/source/bridgetest/currentcontextchecker.cxx | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx index 6e09923dcaac..9d2a6b1832e7 100644 --- a/testtools/source/bridgetest/bridgetest.cxx +++ b/testtools/source/bridgetest/bridgetest.cxx @@ -67,10 +67,10 @@ using namespace com::sun::star::bridge; using namespace test::testtools::bridgetest; -constexpr OUStringLiteral SERVICENAME = u"com.sun.star.test.bridge.BridgeTest"; -constexpr OUStringLiteral IMPLNAME = u"com.sun.star.comp.bridge.BridgeTest"; +constexpr OUString SERVICENAME = u"com.sun.star.test.bridge.BridgeTest"_ustr; +constexpr OUString IMPLNAME = u"com.sun.star.comp.bridge.BridgeTest"_ustr; -constexpr OUStringLiteral STRING_TEST_CONSTANT = u"\" paco\' chorizo\\\' \"\'"; +constexpr OUString STRING_TEST_CONSTANT = u"\" paco\' chorizo\\\' \"\'"_ustr; namespace bridge_test { diff --git a/testtools/source/bridgetest/cppobj.cxx b/testtools/source/bridgetest/cppobj.cxx index 1e0029939c06..e77a582a0907 100644 --- a/testtools/source/bridgetest/cppobj.cxx +++ b/testtools/source/bridgetest/cppobj.cxx @@ -61,8 +61,8 @@ using namespace test::testtools::bridgetest; #pragma warning (disable : 4503) // irrelevant for test code #endif -constexpr OUStringLiteral SERVICENAME = u"com.sun.star.test.bridge.CppTestObject"; -constexpr OUStringLiteral IMPLNAME = u"com.sun.star.comp.bridge.CppTestObject"; +constexpr OUString SERVICENAME = u"com.sun.star.test.bridge.CppTestObject"_ustr; +constexpr OUString IMPLNAME = u"com.sun.star.comp.bridge.CppTestObject"_ustr; namespace bridge_object { diff --git a/testtools/source/bridgetest/currentcontextchecker.cxx b/testtools/source/bridgetest/currentcontextchecker.cxx index 5852f85b9cbe..8d41a40427d5 100644 --- a/testtools/source/bridgetest/currentcontextchecker.cxx +++ b/testtools/source/bridgetest/currentcontextchecker.cxx @@ -36,8 +36,8 @@ namespace { -constexpr OUStringLiteral KEY = u"testtools.bridgetest.Key"; -constexpr OUStringLiteral VALUE = u"good"; +constexpr OUString KEY = u"testtools.bridgetest.Key"_ustr; +constexpr OUString VALUE = u"good"_ustr; class CurrentContext: public ::osl::DebugBase< CurrentContext >, @@ -56,7 +56,7 @@ CurrentContext::CurrentContext() {} css::uno::Any CurrentContext::getValueByName(OUString const & Name) { - return Name == KEY ? css::uno::Any(OUString(VALUE)) : css::uno::Any(); + return Name == KEY ? css::uno::Any(VALUE) : css::uno::Any(); } } |