diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-01-31 17:28:52 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-01-31 17:28:52 +0200 |
commit | a322022d9a73c31eb26f0752b528e9e866ce6140 (patch) | |
tree | ae82badb91765f3502768f67f6d223fb690d1a8f | |
parent | 2b4ceff9384198352df8540df4835379ed8cc23c (diff) |
Move assertions before use
-rw-r--r-- | sc/qa/unit/filters-test.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx index 2a0b3e2edd85..8314c8c2e28e 100644 --- a/sc/qa/unit/filters-test.cxx +++ b/sc/qa/unit/filters-test.cxx @@ -291,9 +291,11 @@ void ScFiltersTest::testRangeName() rtl::OUString aFilterType(aFileFormats[i].pTypeName, strlen(aFileFormats[i].pTypeName), RTL_TEXTENCODING_UTF8); std::cout << aFileFormats[i].pName << " Test" << std::endl; ScDocShellRef xDocSh = load (aFilterName, aFileName, rtl::OUString(), aFilterType, aFileFormats[i].nFormatType); - xDocSh->DoHardRecalc(true); CPPUNIT_ASSERT_MESSAGE("Failed to load named-ranges-globals.*", xDocSh.Is()); + + xDocSh->DoHardRecalc(true); + ScDocument* pDoc = xDocSh->GetDocument(); testRangeNameImpl(pDoc); @@ -357,9 +359,11 @@ void ScFiltersTest::testContent() rtl::OUString aFilterType(aFileFormats[i].pTypeName, strlen(aFileFormats[i].pTypeName), RTL_TEXTENCODING_UTF8); std::cout << aFileFormats[i].pName << " Test" << std::endl; ScDocShellRef xDocSh = load (aFilterName, aFileName, rtl::OUString(), aFilterType, aFileFormats[i].nFormatType); - xDocSh->DoHardRecalc(true); CPPUNIT_ASSERT_MESSAGE("Failed to load universal-content.*", xDocSh.Is()); + + xDocSh->DoHardRecalc(true); + ScDocument* pDoc = xDocSh->GetDocument(); testContentImpl(pDoc); xDocSh->DoClose(); |