diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-09-12 23:30:51 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-09-12 23:30:51 -0400 |
commit | efebf5181c40c8ff85185b91d46ac356f8127089 (patch) | |
tree | 526a92e2bc3229eac91ae0edfdcd5a0033cc71c8 /sc/qa | |
parent | force always a full recalculation for ods, xls and xlsx in unit test (diff) | |
download | core-efebf5181c40c8ff85185b91d46ac356f8127089.tar.gz core-efebf5181c40c8ff85185b91d46ac356f8127089.zip |
These don't have to be member functions.
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/filters-test.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx index 464cbff66a0b..956e989b4693 100644 --- a/sc/qa/unit/filters-test.cxx +++ b/sc/qa/unit/filters-test.cxx @@ -151,9 +151,7 @@ public: //ods filter tests void testRangeName(); - void testRangeNameImpl(ScDocument* pDoc); void testContent(); - void testContentImpl(ScDocument* pDoc); //same code for ods, xls, xlsx void testFunctions(); void testBugFixesODS(); void testBugFixesXLS(); @@ -291,7 +289,9 @@ void FiltersTest::testCVEs() } -void FiltersTest::testRangeNameImpl(ScDocument* pDoc) +namespace { + +void testRangeNameImpl(ScDocument* pDoc) { //check one range data per sheet and one global more detailed //add some more checks here @@ -319,6 +319,8 @@ void FiltersTest::testRangeNameImpl(ScDocument* pDoc) CPPUNIT_ASSERT_MESSAGE("range name Sheet2.local1 should reference Sheet1.A5", aValue == 5); } +} + void FiltersTest::testRangeName() { const rtl::OUString aFileNameBase(RTL_CONSTASCII_USTRINGPARAM("named-ranges-global.")); @@ -339,7 +341,9 @@ void FiltersTest::testRangeName() } } -void FiltersTest::testContentImpl(ScDocument* pDoc) +namespace { + +void testContentImpl(ScDocument* pDoc) //same code for ods, xls, xlsx { double aValue; //check value import @@ -375,6 +379,8 @@ void FiltersTest::testContentImpl(ScDocument* pDoc) //add additional checks here } +} + void FiltersTest::testContent() { const rtl::OUString aFileNameBase(RTL_CONSTASCII_USTRINGPARAM("universal-content.")); |