vcl/qa/cppunit/blocklistparsertest.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 61699452c0dc8e025e4dc7123ebedf68ee95b4c6
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Tue Feb 16 10:21:02 2016 +0100

    Work around CPPUNIT_ASSERT_EQUAL shortcomings
    
    Change-Id: I377c6b6817a432d1e9d740c7d43233f5b98cd2f6

diff --git a/vcl/qa/cppunit/blocklistparsertest.cxx 
b/vcl/qa/cppunit/blocklistparsertest.cxx
index 66a4f70..b47b518 100644
--- a/vcl/qa/cppunit/blocklistparsertest.cxx
+++ b/vcl/qa/cppunit/blocklistparsertest.cxx
@@ -39,7 +39,8 @@ void BlocklistParserTest::testParse()
     WinBlocklistParser aBlocklistParser(getURLFromSrc("vcl/qa/cppunit/") + 
"test_blocklist_parse.xml", aDriveInfos);
     aBlocklistParser.parse();
 
-    CPPUNIT_ASSERT_EQUAL(20U, aDriveInfos.size());
+    auto const n = aDriveInfos.size();
+    CPPUNIT_ASSERT_EQUAL(static_cast<decltype(n)>(20), n);
 
     size_t i = 0;
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to