summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-05-05 15:35:55 +0200
committerEike Rathke <erack@redhat.com>2017-05-05 15:36:34 +0200
commitba11b28cae3b161bcea5a65709f3c3e222a3c082 (patch)
treea5f708a7846b4b450ea7238333e41b5b4e195811
parent45a1a762147058e3ec6807f6b7f1f7b0a15f3e59 (diff)
Use Date(css::util::Date) ctor
Change-Id: I99fa34fe3177bced41b16660ef1c3548b55ec60d
-rw-r--r--sc/source/core/data/dbdocutl.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/core/data/dbdocutl.cxx b/sc/source/core/data/dbdocutl.cxx
index e5838a7eb78f..4f8f2bba8f45 100644
--- a/sc/source/core/data/dbdocutl.cxx
+++ b/sc/source/core/data/dbdocutl.cxx
@@ -95,9 +95,7 @@ void ScDatabaseDocUtil::PutData( ScDocument* pDoc, SCCOL nCol, SCROW nRow, SCTAB
SvNumberFormatter* pFormTable = pDoc->GetFormatTable();
nFormatIndex = pFormTable->GetStandardFormat(
css::util::NumberFormat::DATE, ScGlobal::eLnge );
-
- nVal = Date( aDate.Day, aDate.Month, aDate.Year ) -
- *pFormTable->GetNullDate();
+ nVal = Date( aDate ) - *pFormTable->GetNullDate();
}
bValue = true;
}