diff options
author | Eike Rathke <erack@redhat.com> | 2023-05-27 23:14:30 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2023-05-28 03:49:55 +0200 |
commit | 7e3ddf1e5aae5e4e956495e3d86a8cbf6e251b5e (patch) | |
tree | 77a821942e11545a9f7da6592a641ab1c8cfe4d4 /include | |
parent | 20873f073ae4a9478f0a84355f779a2176bd2ec8 (diff) |
Factor out DateTime::NormalizeTimeRemainderAndApply(tools::Time& rTime)
Change-Id: Ie520b10baaeb4c94973c44435c3241e5d2254968
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152345
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/datetime.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tools/datetime.hxx b/include/tools/datetime.hxx index 7b78b29bdfc5..dd435e3994ba 100644 --- a/include/tools/datetime.hxx +++ b/include/tools/datetime.hxx @@ -83,6 +83,9 @@ public: void AddTime( double fTimeInDays ); DateTime& operator +=( const tools::Time& rTime ); DateTime& operator -=( const tools::Time& rTime ); +private: + void NormalizeTimeRemainderAndApply( tools::Time& rTime ); +public: TOOLS_DLLPUBLIC friend DateTime operator +( const DateTime& rDateTime, sal_Int32 nDays ); TOOLS_DLLPUBLIC friend DateTime operator -( const DateTime& rDateTime, sal_Int32 nDays ); |