diff options
Diffstat (limited to 'sc/source/filter/excel')
-rw-r--r-- | sc/source/filter/excel/excrecds.cxx | 6 | ||||
-rw-r--r-- | sc/source/filter/excel/xlroot.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/excel/excrecds.cxx b/sc/source/filter/excel/excrecds.cxx index fd0ce5977ddb..9b2c67cbbb85 100644 --- a/sc/source/filter/excel/excrecds.cxx +++ b/sc/source/filter/excel/excrecds.cxx @@ -286,9 +286,9 @@ const sal_uInt8* ExcDummy_041::GetData() const Exc1904::Exc1904( ScDocument& rDoc ) { - Date* pDate = rDoc.GetFormatTable()->GetNullDate(); - bVal = pDate && (*pDate == Date( 1, 1, 1904 )); - bDateCompatibility = pDate && !( *pDate == Date( 30, 12, 1899 )); + const Date& rDate = rDoc.GetFormatTable()->GetNullDate(); + bVal = (rDate == Date( 1, 1, 1904 )); + bDateCompatibility = !(rDate == Date( 30, 12, 1899 )); } sal_uInt16 Exc1904::GetNum() const diff --git a/sc/source/filter/excel/xlroot.cxx b/sc/source/filter/excel/xlroot.cxx index 262f40b409ba..72b1450a5084 100644 --- a/sc/source/filter/excel/xlroot.cxx +++ b/sc/source/filter/excel/xlroot.cxx @@ -316,7 +316,7 @@ SvNumberFormatter& XclRoot::GetFormatter() const DateTime XclRoot::GetNullDate() const { - return *GetFormatter().GetNullDate(); + return GetFormatter().GetNullDate(); } sal_uInt16 XclRoot::GetBaseYear() const |