diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-09-12 23:59:46 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-09-12 23:59:46 -0400 |
commit | 239ad92c2731d6f14349595475bdec7d1fe479ef (patch) | |
tree | 1190bfaa28d3d77afd312a574114dcff7b3bd924 | |
parent | a60b10593d206569acc315a32f1e6d66039bf863 (diff) |
We normally use an 'f' prefix for double.
I'm not a big fan of Hungarian notation, but since we use it, let's
be consistent.
-rw-r--r-- | sc/qa/unit/filters-test.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx index 96845b570e24..fdeb2c1a0c6f 100644 --- a/sc/qa/unit/filters-test.cxx +++ b/sc/qa/unit/filters-test.cxx @@ -342,12 +342,12 @@ namespace { void testContentImpl(ScDocument* pDoc) //same code for ods, xls, xlsx { - double aValue; + double fValue; //check value import - pDoc->GetValue(0,0,0,aValue); - CPPUNIT_ASSERT_MESSAGE("value not imported correctly", aValue == 1); - pDoc->GetValue(0,1,0,aValue); - CPPUNIT_ASSERT_MESSAGE("value not imported correctly", aValue == 2); + pDoc->GetValue(0,0,0,fValue); + CPPUNIT_ASSERT_MESSAGE("value not imported correctly", fValue == 1); + pDoc->GetValue(0,1,0,fValue); + CPPUNIT_ASSERT_MESSAGE("value not imported correctly", fValue == 2); rtl::OUString aString; pDoc->GetString(1,0,0,aString); //check string import @@ -355,14 +355,14 @@ void testContentImpl(ScDocument* pDoc) //same code for ods, xls, xlsx pDoc->GetString(1,1,0,aString); CPPUNIT_ASSERT_MESSAGE("string not imported correctly", aString == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("String2"))); //check basic formula import - pDoc->GetValue(2,0,0,aValue); - CPPUNIT_ASSERT_MESSAGE("=2*3", aValue==6); - pDoc->GetValue(2,1,0,aValue); - CPPUNIT_ASSERT_MESSAGE("=2+3", aValue==5); - pDoc->GetValue(2,2,0,aValue); - CPPUNIT_ASSERT_MESSAGE("=2-3", aValue==-1); - pDoc->GetValue(2,3,0,aValue); - CPPUNIT_ASSERT_MESSAGE("=C1+C2", aValue==11); + pDoc->GetValue(2,0,0,fValue); + CPPUNIT_ASSERT_MESSAGE("=2*3", fValue == 6); + pDoc->GetValue(2,1,0,fValue); + CPPUNIT_ASSERT_MESSAGE("=2+3", fValue == 5); + pDoc->GetValue(2,2,0,fValue); + CPPUNIT_ASSERT_MESSAGE("=2-3", fValue == -1); + pDoc->GetValue(2,3,0,fValue); + CPPUNIT_ASSERT_MESSAGE("=C1+C2", fValue == 11); //check merged cells import SCCOL nCol = 4; SCROW nRow = 1; |