From 5d6bfead080f31c421c4b236e3d6f2a9e8118b97 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 11 Jul 2013 07:36:06 +0200 Subject: Fix Windows build. Change-Id: I943171b14610f8a9e6561a60f4a3297e26e32f14 --- sc/qa/unit/ucalc_sharedformula.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'sc') diff --git a/sc/qa/unit/ucalc_sharedformula.cxx b/sc/qa/unit/ucalc_sharedformula.cxx index 7093985b66d8..793448338a8e 100644 --- a/sc/qa/unit/ucalc_sharedformula.cxx +++ b/sc/qa/unit/ucalc_sharedformula.cxx @@ -243,8 +243,8 @@ void Test::testSharedFormulasCopyPaste() ScAddress aPos(1, 8, 0); // B9 ScFormulaCell* pFC = m_pDoc->GetFormulaCell(aPos); CPPUNIT_ASSERT_MESSAGE("B9 should be a formula cell.", pFC); - CPPUNIT_ASSERT_EQUAL(0, pFC->GetSharedTopRow()); - CPPUNIT_ASSERT_EQUAL(10, pFC->GetSharedLength()); + CPPUNIT_ASSERT_EQUAL(static_cast(0), pFC->GetSharedTopRow()); + CPPUNIT_ASSERT_EQUAL(static_cast(10), pFC->GetSharedLength()); // Copy formulas in B6:B9 to the clipboard doc. ScRange aSrcRange(1,5,0,1,8,0); // B6:B9 @@ -252,8 +252,8 @@ void Test::testSharedFormulasCopyPaste() copyToClip(m_pDoc, aSrcRange, &aClipDoc); pFC = aClipDoc.GetFormulaCell(aPos); CPPUNIT_ASSERT_MESSAGE("B9 in the clip doc should be a formula cell.", pFC); - CPPUNIT_ASSERT_EQUAL(5, pFC->GetSharedTopRow()); - CPPUNIT_ASSERT_EQUAL(4, pFC->GetSharedLength()); + CPPUNIT_ASSERT_EQUAL(static_cast(5), pFC->GetSharedTopRow()); + CPPUNIT_ASSERT_EQUAL(static_cast(4), pFC->GetSharedLength()); // Paste them to C2:C10. ScRange aDestRange(2,1,0,2,9,0); @@ -264,8 +264,8 @@ void Test::testSharedFormulasCopyPaste() aPos.SetRow(1); pFC = m_pDoc->GetFormulaCell(aPos); CPPUNIT_ASSERT_MESSAGE("C2 should be a formula cell.", pFC); - CPPUNIT_ASSERT_EQUAL(1, pFC->GetSharedTopRow()); - CPPUNIT_ASSERT_EQUAL(9, pFC->GetSharedLength()); + CPPUNIT_ASSERT_EQUAL(static_cast(1), pFC->GetSharedTopRow()); + CPPUNIT_ASSERT_EQUAL(static_cast(9), pFC->GetSharedLength()); ScRange aRange(1,0,0,1,9,0); // B1:B10 ScDocument* pUndoDoc = new ScDocument(SCDOCMODE_UNDO); @@ -280,8 +280,8 @@ void Test::testSharedFormulasCopyPaste() aPos.SetRow(i); pFC = pUndoDoc->GetFormulaCell(aPos); CPPUNIT_ASSERT_MESSAGE("Must be a formula cell.", pFC); - CPPUNIT_ASSERT_EQUAL(0, pFC->GetSharedTopRow()); - CPPUNIT_ASSERT_EQUAL(10, pFC->GetSharedLength()); + CPPUNIT_ASSERT_EQUAL(static_cast(0), pFC->GetSharedTopRow()); + CPPUNIT_ASSERT_EQUAL(static_cast(10), pFC->GetSharedLength()); } // Overwrite B1:B10. @@ -300,8 +300,8 @@ void Test::testSharedFormulasCopyPaste() aPos.SetRow(i); pFC = m_pDoc->GetFormulaCell(aPos); CPPUNIT_ASSERT_MESSAGE("This should be a formula cell.", pFC); - CPPUNIT_ASSERT_EQUAL(0, pFC->GetSharedTopRow()); - CPPUNIT_ASSERT_EQUAL(10, pFC->GetSharedLength()); + CPPUNIT_ASSERT_EQUAL(static_cast(0), pFC->GetSharedTopRow()); + CPPUNIT_ASSERT_EQUAL(static_cast(10), pFC->GetSharedLength()); } m_pDoc->DeleteTab(0); -- cgit