From 24761a6fd7ec028ad94f5b0c9993e0ac804bdee7 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 19 Sep 2012 01:10:49 +0200 Subject: use the defines instead of hard coded numbers Change-Id: Id410cd758f325b9c7011ae1b7b911914a5822e0d --- sc/qa/unit/filters-test.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sc') diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx index 2126a452c566..dc6df6dab188 100644 --- a/sc/qa/unit/filters-test.cxx +++ b/sc/qa/unit/filters-test.cxx @@ -373,7 +373,7 @@ void testContentImpl(ScDocument* pDoc, sal_Int32 nFormat ) //same code for ods, void ScFiltersTest::testContentODS() { const rtl::OUString aFileNameBase(RTL_CONSTASCII_USTRINGPARAM("universal-content.")); - ScDocShellRef xDocSh = loadDoc(aFileNameBase, 0); + ScDocShellRef xDocSh = loadDoc(aFileNameBase, ODS); xDocSh->DoHardRecalc(true); ScDocument* pDoc = xDocSh->GetDocument(); @@ -384,7 +384,7 @@ void ScFiltersTest::testContentODS() void ScFiltersTest::testContentXLS() { const rtl::OUString aFileNameBase(RTL_CONSTASCII_USTRINGPARAM("universal-content.")); - ScDocShellRef xDocSh = loadDoc(aFileNameBase, 1); + ScDocShellRef xDocSh = loadDoc(aFileNameBase, XLS); xDocSh->DoHardRecalc(true); ScDocument* pDoc = xDocSh->GetDocument(); @@ -395,7 +395,7 @@ void ScFiltersTest::testContentXLS() void ScFiltersTest::testContentXLSX() { const rtl::OUString aFileNameBase(RTL_CONSTASCII_USTRINGPARAM("universal-content.")); - ScDocShellRef xDocSh = loadDoc(aFileNameBase, 2); + ScDocShellRef xDocSh = loadDoc(aFileNameBase, XLSX); xDocSh->DoHardRecalc(true); ScDocument* pDoc = xDocSh->GetDocument(); @@ -406,7 +406,7 @@ void ScFiltersTest::testContentXLSX() void ScFiltersTest::testContentLotus123() { const rtl::OUString aFileNameBase(RTL_CONSTASCII_USTRINGPARAM("universal-content.")); - ScDocShellRef xDocSh = loadDoc(aFileNameBase, 3); + ScDocShellRef xDocSh = loadDoc(aFileNameBase, LOTUS123); xDocSh->DoHardRecalc(true); ScDocument* pDoc = xDocSh->GetDocument(); -- cgit