diff options
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r-- | vcl/qa/cppunit/GraphicTest.cxx | 4 | ||||
-rw-r--r-- | vcl/qa/cppunit/PDFDocumentTest.cxx | 2 | ||||
-rw-r--r-- | vcl/qa/cppunit/TypeSerializerTest.cxx | 2 | ||||
-rw-r--r-- | vcl/qa/cppunit/mnemonic.cxx | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/vcl/qa/cppunit/GraphicTest.cxx b/vcl/qa/cppunit/GraphicTest.cxx index ef9678e42197..94cbd654b5ce 100644 --- a/vcl/qa/cppunit/GraphicTest.cxx +++ b/vcl/qa/cppunit/GraphicTest.cxx @@ -146,8 +146,8 @@ bool checkBitmap(Graphic& rGraphic) return bResult; } -constexpr OUStringLiteral DATA_DIRECTORY = u"/vcl/qa/cppunit/data/"; -constexpr OUStringLiteral PDFEXPORT_DATA_DIRECTORY = u"/vcl/qa/cppunit/pdfexport/data/"; +constexpr OUString DATA_DIRECTORY = u"/vcl/qa/cppunit/data/"_ustr; +constexpr OUString PDFEXPORT_DATA_DIRECTORY = u"/vcl/qa/cppunit/pdfexport/data/"_ustr; Graphic loadGraphic(std::u16string_view const& rFilename) { diff --git a/vcl/qa/cppunit/PDFDocumentTest.cxx b/vcl/qa/cppunit/PDFDocumentTest.cxx index 35af8e66cd58..88fcdc0a765b 100644 --- a/vcl/qa/cppunit/PDFDocumentTest.cxx +++ b/vcl/qa/cppunit/PDFDocumentTest.cxx @@ -22,7 +22,7 @@ public: PDFDocumentTest() = default; }; -constexpr OUStringLiteral DATA_DIRECTORY = u"/vcl/qa/cppunit/data/"; +constexpr OUString DATA_DIRECTORY = u"/vcl/qa/cppunit/data/"_ustr; CPPUNIT_TEST_FIXTURE(PDFDocumentTest, testParseBasicPDF) { diff --git a/vcl/qa/cppunit/TypeSerializerTest.cxx b/vcl/qa/cppunit/TypeSerializerTest.cxx index 2ffa3ec1257f..726843e19a03 100644 --- a/vcl/qa/cppunit/TypeSerializerTest.cxx +++ b/vcl/qa/cppunit/TypeSerializerTest.cxx @@ -34,7 +34,7 @@ namespace { -constexpr OUStringLiteral DATA_DIRECTORY = u"/vcl/qa/cppunit/data/"; +constexpr OUString DATA_DIRECTORY = u"/vcl/qa/cppunit/data/"_ustr; std::vector<unsigned char> calculateHash(SvStream& rStream) { diff --git a/vcl/qa/cppunit/mnemonic.cxx b/vcl/qa/cppunit/mnemonic.cxx index 05ef7366cd21..9b6ce7d073ac 100644 --- a/vcl/qa/cppunit/mnemonic.cxx +++ b/vcl/qa/cppunit/mnemonic.cxx @@ -60,11 +60,11 @@ void VclMnemonicTest::testMnemonic() } { - static constexpr OUStringLiteral TEST = u"\u4E00"; + static constexpr OUString TEST = u"\u4E00"_ustr; OUString sResult = aGenerator.CreateMnemonic(TEST); CPPUNIT_ASSERT_EQUAL(OUString("(~C)"), sResult.copy(sResult.getLength() - 4)); sResult = MnemonicGenerator::EraseAllMnemonicChars(sResult); - CPPUNIT_ASSERT_EQUAL(OUString(TEST), sResult); + CPPUNIT_ASSERT_EQUAL(TEST, sResult); } } |