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>
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user