summaryrefslogtreecommitdiffstats
path: root/sw/qa/extras/ww8export/ww8export.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-01-20 11:39:37 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-01-20 14:07:27 +0000
commite71ed748acd040b68d9a1910b75ea0550e0c2008 (patch)
tree3c9c539fd4e640dc80fa1cc7520db81e1b3e094e /sw/qa/extras/ww8export/ww8export.cxx
parentsvmtest: don't output GDIMetaFiles to disk in normal test runs (diff)
downloadcore-e71ed748acd040b68d9a1910b75ea0550e0c2008.tar.gz
core-e71ed748acd040b68d9a1910b75ea0550e0c2008.zip
sw: fix remaining loplugin:cppunitassertequals warnings
Now only subsequentchecks are remaining, as far as I see. Change-Id: Id5e5a874f8de08c0fd3722aecdc02967ae5d421f Reviewed-on: https://gerrit.libreoffice.org/33346 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/ww8export/ww8export.cxx')
-rw-r--r--sw/qa/extras/ww8export/ww8export.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/qa/extras/ww8export/ww8export.cxx b/sw/qa/extras/ww8export/ww8export.cxx
index f5fffee106f2..dd3f6b3be244 100644
--- a/sw/qa/extras/ww8export/ww8export.cxx
+++ b/sw/qa/extras/ww8export/ww8export.cxx
@@ -579,7 +579,7 @@ DECLARE_WW8EXPORT_TEST(testfdo68963, "fdo68963.doc")
CPPUNIT_ASSERT ( !parseDump("/root/page/body/tab/row[2]/cell[1]/txt/Special", "rText").isEmpty() );
CPPUNIT_ASSERT_EQUAL( OUString("Topic 1"), parseDump("/root/page/body/tab/row[2]/cell[1]/txt/Special", "rText") );
// all crossreference bookmarks should have a target. Shouldn't be any "Reference source not found" in the xml
- CPPUNIT_ASSERT ( -1 == parseDump("/root/page/body/txt[24]/Special[2]","rText").indexOf("Reference source not found"));
+ CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(-1), parseDump("/root/page/body/txt[24]/Special[2]","rText").indexOf("Reference source not found"));
}
DECLARE_WW8EXPORT_TEST(testTdf99100, "tdf99100.doc")
@@ -703,7 +703,7 @@ DECLARE_WW8EXPORT_TEST(testTscp, "tscp.doc")
rdf::Statement aStatement = xStatements->nextElement().get<rdf::Statement>();
aActualStatements[aStatement.Predicate->getNamespace() + aStatement.Predicate->getLocalName()] = aStatement.Object->getStringValue();
}
- CPPUNIT_ASSERT(aExpectedStatements == aActualStatements);
+ CPPUNIT_ASSERT(bool(aExpectedStatements == aActualStatements));
// No RDF statement on the third paragraph.
xParagraph.set(getParagraph(3), uno::UNO_QUERY);
@@ -1174,7 +1174,7 @@ DECLARE_WW8EXPORT_TEST(testRES_MIRROR_GRAPH_BOTH, "tdf56321_flipImage_both.doc")
SwNode* pNode = pDoc->GetNodes()[ n ];
if (SwGrfNode *pGrfNode = pNode->GetGrfNode())
{
- CPPUNIT_ASSERT(pGrfNode->GetSwAttrSet().GetMirrorGrf().GetValue() == 3);
+ CPPUNIT_ASSERT_EQUAL(static_cast<sal_uInt16>(3), pGrfNode->GetSwAttrSet().GetMirrorGrf().GetValue());
break;
}
}