[Libreoffice-commits] core.git: sd/qa

Miklos Vajna vmiklos at collabora.co.uk
Thu May 19 08:28:43 UTC 2016


 sd/qa/unit/uimpress.cxx |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 71b74f8fd1fc84cf92dddeab02647b8b765d0d4a
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu May 19 08:54:06 2016 +0200

    CppunitTest_sd_uimpress: fix loplugin:cppunitassertequals warnings
    
    Change-Id: I173cec0fc3ca9d8501537f38399ef034bde1482c
    Reviewed-on: https://gerrit.libreoffice.org/25129
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/sd/qa/unit/uimpress.cxx b/sd/qa/unit/uimpress.cxx
index af06d8c..10f6aa7 100644
--- a/sd/qa/unit/uimpress.cxx
+++ b/sd/qa/unit/uimpress.cxx
@@ -85,19 +85,19 @@ void Test::testAddPage()
 {
     SdrPage* pPage = m_pDoc->AllocPage(false);
     m_pDoc->InsertPage(pPage);
-    CPPUNIT_ASSERT_MESSAGE("added one page to model",
-                           m_pDoc->GetPageCount()==1);
+    CPPUNIT_ASSERT_EQUAL_MESSAGE("added one page to model",
+                                 static_cast<sal_uInt16>(1), m_pDoc->GetPageCount());
     m_pDoc->DeletePage(0);
-    CPPUNIT_ASSERT_MESSAGE("removed one page to model",
-                           m_pDoc->GetPageCount()==0);
+    CPPUNIT_ASSERT_EQUAL_MESSAGE("removed one page to model",
+                                 static_cast<sal_uInt16>(0), m_pDoc->GetPageCount());
 
     SdrPage* pMasterPage = m_pDoc->AllocPage(true);
     m_pDoc->InsertMasterPage(pMasterPage);
-    CPPUNIT_ASSERT_MESSAGE("added one master page to model",
-                           m_pDoc->GetMasterPageCount()==1);
+    CPPUNIT_ASSERT_EQUAL_MESSAGE("added one master page to model",
+                                 static_cast<sal_uInt16>(1), m_pDoc->GetMasterPageCount());
     m_pDoc->DeleteMasterPage(0);
-    CPPUNIT_ASSERT_MESSAGE("removed one master page to model",
-                           m_pDoc->GetMasterPageCount()==0);
+    CPPUNIT_ASSERT_EQUAL_MESSAGE("removed one master page to model",
+                                 static_cast<sal_uInt16>(0), m_pDoc->GetMasterPageCount());
 }
 
 void Test::testCustomShow()


More information about the Libreoffice-commits mailing list