Kaydet (Commit) 10e3e75c authored tarafından Markus Mohrhard's avatar Markus Mohrhard

small stylistic changes for previous commit

Change-Id: Ied363ca05ee1778b401073321588ac00d9b19634
üst 23159e5a
......@@ -19,7 +19,6 @@
#include <sfx2/sfxmodelfactory.hxx>
#include <svl/stritem.hxx>
#include <svl/nfkeytab.hxx>
//#include <zformat.hxx>
#include <svl/zformat.hxx>
#include <svx/svdograf.hxx>
......@@ -361,7 +360,7 @@ void ScFiltersTest::testBooleanFormatXLSX()
{
ScDocShellRef xDocSh = loadDoc("check-boolean.", XLSX);
ScDocument& rDoc = xDocSh->GetDocument();
SvNumberFormatter *pNumFormatter = rDoc.GetFormatTable();
SvNumberFormatter* pNumFormatter = rDoc.GetFormatTable();
const OUString aBooleanTypeStr = "\"TRUE\";\"TRUE\";\"FALSE\"";
CPPUNIT_ASSERT_MESSAGE("Failed to load check-boolean.xlsx", xDocSh.Is());
......@@ -369,10 +368,10 @@ void ScFiltersTest::testBooleanFormatXLSX()
for (SCROW i = 0; i <= 1; i++)
{
rDoc.GetNumberFormat(0, i, 0, nNumberFormat);
const SvNumberformat *pSvnumberFormat = pNumFormatter->GetEntry(nNumberFormat);
const OUString &rFormatStr = pSvnumberFormat->GetFormatstring();
CPPUNIT_ASSERT_MESSAGE("Number format != boolean", rFormatStr == aBooleanTypeStr);
rDoc.GetNumberFormat(0, i, 0, nNumberFormat);
const SvNumberformat* pNumberFormat = pNumFormatter->GetEntry(nNumberFormat);
const OUString& rFormatStr = pNumberFormat->GetFormatstring();
CPPUNIT_ASSERT_EQUAL_MESSAGE("Number format != boolean", rFormatStr, aBooleanTypeStr);
}
xDocSh->DoClose();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment