summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/excrecds.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/excrecds.cxx')
-rw-r--r--sc/source/filter/excel/excrecds.cxx6
1 files changed, 3 insertions, 3 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