summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-10 08:10:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-10 08:10:38 +0100
commit0999f6469ee5ce148f2f81b26fc703a3ff65a101 (patch)
tree36e589290cd9b8b897169f5290273c4114c90e2d /sdext
parent92b58a275341a1696257804cac85a2c33a71c1d5 (diff)
New loplugin:conststringvar: sdext
Change-Id: I2452ef62e34b1837048ab79bde07660a50b6dec9
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/test/tests.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sdext/source/pdfimport/test/tests.cxx b/sdext/source/pdfimport/test/tests.cxx
index 1d03e1a4c7ca..f651ff81b85a 100644
--- a/sdext/source/pdfimport/test/tests.cxx
+++ b/sdext/source/pdfimport/test/tests.cxx
@@ -229,9 +229,9 @@ namespace
CPPUNIT_ASSERT_MESSAGE( "Line width is 0",
rtl::math::approxEqual(rContext.LineWidth, 28.3) );
- const char* sExportString = "m53570 7650-35430 24100";
+ const char sExportString[] = "m53570 7650-35430 24100";
CPPUNIT_ASSERT_MESSAGE( "Stroke is m535.7 518.5-354.3-241",
- basegfx::tools::exportToSvgD( aPath, true, true, false ).equalsAscii(sExportString) );
+ basegfx::tools::exportToSvgD( aPath, true, true, false ) == sExportString );
m_bGreenStrokeSeen = true;
}
@@ -251,9 +251,9 @@ namespace
CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( "Line width is 0",
0, rContext.LineWidth, 0.0000001 );
- const char* sExportString = "m49890 5670.00000000001-35430 24090";
+ const char sExportString[] = "m49890 5670.00000000001-35430 24090";
CPPUNIT_ASSERT_MESSAGE( "Stroke is m49890 5670.00000000001-35430 24090",
- basegfx::tools::exportToSvgD( aPath, true, true, false ).equalsAscii(sExportString) );
+ basegfx::tools::exportToSvgD( aPath, true, true, false ) == sExportString );
m_bDashedLineSeen = true;
}
@@ -308,10 +308,10 @@ namespace
CPPUNIT_ASSERT_EQUAL_MESSAGE( "Font id is 0",
(sal_Int32) 0, rContext.FontId );
- const char* sExportString = "m12050 49610c-4310 0-7800-3490-7800-7800 0-4300 "
+ const char sExportString[] = "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";
CPPUNIT_ASSERT_MESSAGE( "Stroke is a 4-bezier circle",
- basegfx::tools::exportToSvgD( aPath, true, true, false ).equalsAscii(sExportString) );
+ basegfx::tools::exportToSvgD( aPath, true, true, false ) == sExportString );
m_bRedCircleSeen = true;
}