diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-28 09:31:18 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-28 10:05:27 +0000 |
commit | 2b04d710a27edb16bb6c47fd572a8c81d265b046 (patch) | |
tree | ae1e968eedfd76f8fa758ddcaee26ec3a69fc682 /sc/qa/extras/anchor.cxx | |
parent | dd974413acc6ab00168a301cbb53b3c9caa11e32 (diff) |
sc: fix remaining loplugin:cppunitassertequals warnings
Change-Id: I12191d1fd776d617d9418079b77b4c8e84d199a3
Reviewed-on: https://gerrit.libreoffice.org/31306
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sc/qa/extras/anchor.cxx')
-rw-r--r-- | sc/qa/extras/anchor.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/qa/extras/anchor.cxx b/sc/qa/extras/anchor.cxx index 823370529e0c..b5310abe69d3 100644 --- a/sc/qa/extras/anchor.cxx +++ b/sc/qa/extras/anchor.cxx @@ -95,13 +95,13 @@ void ScAnchorTest::testUndoAnchor() ScDrawLayer::SetCellAnchoredFromPosition(*pObject, rDoc, 0); // Check state ScAnchorType oldType = ScDrawLayer::GetAnchorType(*pObject); - CPPUNIT_ASSERT(oldType == SCA_CELL ); + CPPUNIT_ASSERT_EQUAL(SCA_CELL, oldType); // Change all selected objects to page anchor pViewShell->GetViewData().GetDispatcher().Execute(SID_ANCHOR_PAGE); // Check state ScAnchorType newType = ScDrawLayer::GetAnchorType(*pObject); - CPPUNIT_ASSERT(newType == SCA_PAGE ); + CPPUNIT_ASSERT_EQUAL(SCA_PAGE, newType); // Undo and check its result. SfxUndoManager* pUndoMgr = rDoc.GetUndoManager(); @@ -109,39 +109,39 @@ void ScAnchorTest::testUndoAnchor() pUndoMgr->Undo(); // Check anchor type - CPPUNIT_ASSERT(oldType == ScDrawLayer::GetAnchorType(*pObject) ); + CPPUNIT_ASSERT_EQUAL(oldType, ScDrawLayer::GetAnchorType(*pObject)); CPPUNIT_ASSERT_EQUAL(int(GraphicType::Bitmap), int(rGraphicObj.GetGraphic().GetType())); CPPUNIT_ASSERT_EQUAL(sal_uLong(864900), rGraphicObj.GetSizeBytes()); pUndoMgr->Redo(); // Check anchor type - CPPUNIT_ASSERT(newType == ScDrawLayer::GetAnchorType(*pObject) ); + CPPUNIT_ASSERT_EQUAL(newType, ScDrawLayer::GetAnchorType(*pObject)); CPPUNIT_ASSERT_EQUAL(int(GraphicType::Bitmap), int(rGraphicObj.GetGraphic().GetType())); CPPUNIT_ASSERT_EQUAL(sal_uLong(864900), rGraphicObj.GetSizeBytes()); ScDrawLayer::SetPageAnchored(*pObject); // Check state oldType = ScDrawLayer::GetAnchorType(*pObject); - CPPUNIT_ASSERT(oldType == SCA_PAGE ); + CPPUNIT_ASSERT_EQUAL(SCA_PAGE, oldType); // Change all selected objects to cell anchor pViewShell->GetViewData().GetDispatcher().Execute(SID_ANCHOR_CELL); // Check state newType = ScDrawLayer::GetAnchorType(*pObject); - CPPUNIT_ASSERT(newType == SCA_CELL ); + CPPUNIT_ASSERT_EQUAL(SCA_CELL, newType); pUndoMgr->Undo(); // Check anchor type - CPPUNIT_ASSERT(oldType == ScDrawLayer::GetAnchorType(*pObject) ); + CPPUNIT_ASSERT_EQUAL(oldType, ScDrawLayer::GetAnchorType(*pObject)); CPPUNIT_ASSERT_EQUAL(int(GraphicType::Bitmap), int(rGraphicObj.GetGraphic().GetType())); CPPUNIT_ASSERT_EQUAL(sal_uLong(864900), rGraphicObj.GetSizeBytes()); pUndoMgr->Redo(); // Check anchor type - CPPUNIT_ASSERT(newType == ScDrawLayer::GetAnchorType(*pObject) ); + CPPUNIT_ASSERT_EQUAL(newType, ScDrawLayer::GetAnchorType(*pObject)); CPPUNIT_ASSERT_EQUAL(int(GraphicType::Bitmap), int(rGraphicObj.GetGraphic().GetType())); CPPUNIT_ASSERT_EQUAL(sal_uLong(864900), rGraphicObj.GetSizeBytes()); |