diff options
author | Eike Rathke <erack@redhat.com> | 2017-05-05 15:15:20 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-05-05 15:36:34 +0200 |
commit | cf2c51307aaff7f68e149fd443975c44a132cc39 (patch) | |
tree | 723de1dcb512c92aac1bc6288b054a457437057d /include/tools | |
parent | Comment that day and month must be <100 and year != 0 (diff) | |
download | core-cf2c51307aaff7f68e149fd443975c44a132cc39.tar.gz core-cf2c51307aaff7f68e149fd443975c44a132cc39.zip |
Introduce Date::IsEmpty()
Change-Id: I4199b1da723c93b369c84bf664ef2d6e6e6dabb7
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/date.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tools/date.hxx b/include/tools/date.hxx index 97a6adec925d..7ea3998314fb 100644 --- a/include/tools/date.hxx +++ b/include/tools/date.hxx @@ -80,6 +80,8 @@ public: } Date( const css::util::DateTime& _rDateTime ); + bool IsEmpty() const { return mnDate == 0; } + void SetDate( sal_Int32 nNewDate ); sal_Int32 GetDate() const { return mnDate; } /** Type safe access for values that are guaranteed to be unsigned, like Date::SYSTEM. */ |