diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:24:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:24:43 +0100 |
commit | 126f10840b0e5930be57cb55262789e85bff9b21 (patch) | |
tree | f9deff882431702609a44eecc5f1dcfab4378963 /emfio/qa/cppunit/emf | |
parent | 32bd0425cc53bab05f7ab03252b37ccd6abc7dda (diff) |
More loplugin:cstylecast: emfio
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: Idffd3ef04b007f04b7022e54881254da9b2aa4a0
Diffstat (limited to 'emfio/qa/cppunit/emf')
-rw-r--r-- | emfio/qa/cppunit/emf/EmfImportTest.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/emfio/qa/cppunit/emf/EmfImportTest.cxx b/emfio/qa/cppunit/emf/EmfImportTest.cxx index bc14c4bd3062..9611db65f9af 100644 --- a/emfio/qa/cppunit/emf/EmfImportTest.cxx +++ b/emfio/qa/cppunit/emf/EmfImportTest.cxx @@ -88,7 +88,7 @@ void Test::checkRectPrimitive(Primitive2DSequence const & rPrimitive) void Test::testWorking() { Primitive2DSequence aSequenceRect = parseEmf("/emfio/qa/cppunit/emf/data/fdo79679-2.emf"); - CPPUNIT_ASSERT_EQUAL(1, (int) aSequenceRect.getLength()); + CPPUNIT_ASSERT_EQUAL(1, static_cast<int>(aSequenceRect.getLength())); checkRectPrimitive(aSequenceRect); } @@ -99,7 +99,7 @@ void Test::TestDrawString() // first, get the sequence of primitives and dump it Primitive2DSequence aSequence = parseEmf("/emfio/qa/cppunit/emf/data/TestDrawString.emf"); - CPPUNIT_ASSERT_EQUAL(1, (int) aSequence.getLength()); + CPPUNIT_ASSERT_EQUAL(1, static_cast<int>(aSequence.getLength())); Primitive2dXmlDump dumper; xmlDocPtr pDocument = dumper.dumpAndParse(comphelper::sequenceToContainer<Primitive2DContainer>(aSequence)); CPPUNIT_ASSERT (pDocument); @@ -120,7 +120,7 @@ void Test::TestDrawLine() // first, get the sequence of primitives and dump it Primitive2DSequence aSequence = parseEmf("/emfio/qa/cppunit/emf/data/TestDrawLine.emf"); - CPPUNIT_ASSERT_EQUAL(1, (int) aSequence.getLength()); + CPPUNIT_ASSERT_EQUAL(1, static_cast<int>(aSequence.getLength())); Primitive2dXmlDump dumper; xmlDocPtr pDocument = dumper.dumpAndParse(comphelper::sequenceToContainer<Primitive2DContainer>(aSequence)); CPPUNIT_ASSERT (pDocument); |