diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-18 21:36:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:52 +0100 |
commit | e935f05c8014664b313f1a0c3ecadfd0fab044b4 (patch) | |
tree | 9aa8fe7f1a3b7a6b2bf31cc17cc383fa903ff511 /test/source | |
parent | 19ae20096aa1c35217753ffd3d903364047834ff (diff) |
Some more loplugin:cstylecast: test
Change-Id: I48397ba0cc3c0737f6c47808d353245f81050a2b
Diffstat (limited to 'test/source')
-rw-r--r-- | test/source/diff/diff.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/source/diff/diff.cxx b/test/source/diff/diff.cxx index 80b67040d046..8128e75a0a77 100644 --- a/test/source/diff/diff.cxx +++ b/test/source/diff/diff.cxx @@ -254,7 +254,7 @@ void XMLDiff::cppunitAssertEqual(const xmlChar *expected, const xmlChar *found) { #if USE_CPPUNIT std::stringstream stringStream; - stringStream << "Reference: " << fileName << "\n- Expected: " << (const char*) expected << "\n- Found: " << (const char*) found; + stringStream << "Reference: " << fileName << "\n- Expected: " << reinterpret_cast<const char*>(expected) << "\n- Found: " << reinterpret_cast<const char*>(found); CPPUNIT_ASSERT_MESSAGE(stringStream.str(), xmlStrEqual(expected, found)); #endif @@ -265,7 +265,7 @@ void XMLDiff::cppunitAssertEqualDouble(const xmlNodePtr node, const xmlAttrPtr a #if USE_CPPUNIT xmlChar * path = xmlGetNodePath(node); std::stringstream stringStream; - stringStream << "Reference: " << fileName << "\n- Node: " << (const char*) path << "\n- Attr: " << (const char*) attr->name; + stringStream << "Reference: " << fileName << "\n- Node: " << reinterpret_cast<const char*>(path) << "\n- Attr: " << reinterpret_cast<const char*>(attr->name); xmlFree(path); CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(stringStream.str(), expected, found, delta); |