summaryrefslogtreecommitdiff
path: root/sdext/qa/unit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-10-19 10:30:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-10-20 09:22:01 +0200
commitbc9fc85452a4da18df592be190347e9781dbba0a (patch)
tree57fd5704e6aebef49bdc7a2c96963f2e568396b2 /sdext/qa/unit
parent68486cc18e3b7fcfa97b472184ede43a76c2be15 (diff)
Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: sdext
Change-Id: I13d1279050de77e8ea054c6ee3a3bce97cec584b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158219 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sdext/qa/unit')
-rw-r--r--sdext/qa/unit/pdfimport.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sdext/qa/unit/pdfimport.cxx b/sdext/qa/unit/pdfimport.cxx
index 2d7cee1295a4..8a65dff940ee 100644
--- a/sdext/qa/unit/pdfimport.cxx
+++ b/sdext/qa/unit/pdfimport.cxx
@@ -231,9 +231,9 @@ namespace
CPPUNIT_ASSERT_MESSAGE( "Line width is 0",
rtl::math::approxEqual(rContext.LineWidth, 28.3) );
- static constexpr OUStringLiteral sExportString = u"m53570 7650-35430 24100";
+ static constexpr OUString sExportString = u"m53570 7650-35430 24100"_ustr;
CPPUNIT_ASSERT_EQUAL_MESSAGE( "Stroke is m535.7 518.5-354.3-241",
- OUString(sExportString), basegfx::utils::exportToSvgD( aPath, true, true, false ) );
+ sExportString, basegfx::utils::exportToSvgD( aPath, true, true, false ) );
m_bGreenStrokeSeen = true;
}
@@ -253,9 +253,9 @@ namespace
CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( "Line width is 0",
0, rContext.LineWidth, 0.0000001 );
- static constexpr OUStringLiteral sExportString = u"m49890 5670.00000000001-35430 24090";
+ static constexpr OUString sExportString = u"m49890 5670.00000000001-35430 24090"_ustr;
CPPUNIT_ASSERT_EQUAL_MESSAGE( "Stroke is m49890 5670.00000000001-35430 24090",
- OUString(sExportString), basegfx::utils::exportToSvgD( aPath, true, true, false ) );
+ sExportString, basegfx::utils::exportToSvgD( aPath, true, true, false ) );
m_bDashedLineSeen = true;
}
@@ -310,11 +310,11 @@ namespace
CPPUNIT_ASSERT_EQUAL_MESSAGE( "Font id is 0",
sal_Int32(0), rContext.FontId );
- static constexpr OUStringLiteral sExportString
+ static constexpr OUString sExportString
= u"m12050 49610c-4310 0-7800-3490-7800-7800 0-4300 "
- "3490-7790 7800-7790 4300 0 7790 3490 7790 7790 0 4310-3490 7800-7790 7800z";
+ "3490-7790 7800-7790 4300 0 7790 3490 7790 7790 0 4310-3490 7800-7790 7800z"_ustr;
CPPUNIT_ASSERT_EQUAL_MESSAGE( "Stroke is a 4-bezier circle",
- OUString(sExportString), basegfx::utils::exportToSvgD( aPath, true, true, false ) );
+ sExportString, basegfx::utils::exportToSvgD( aPath, true, true, false ) );
m_bRedCircleSeen = true;
}