summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-07-21 13:32:10 +0200
committerEike Rathke <erack@redhat.com>2017-07-21 19:26:43 +0200
commit252aab1b9dc1dbeace3087929a52e1248f043839 (patch)
tree2890b163a00aaed11c53bfb68c8dbd16325812a7 /sfx2
parentec340697d682bd7d0a361c8c701e513329c032bd (diff)
Eliminate DateTime::operator+=() and -=() with POD types
And make some tools::Time conversion ctors explicit to catch more oddities like automatic conversion from sal_Int64 that might be unintentional. Change-Id: If275297d86d6657544c056a712b862523e310e44 Reviewed-on: https://gerrit.libreoffice.org/40275 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objcont.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx
index ef8425a224fd..41d8869d811e 100644
--- a/sfx2/source/doc/objcont.cxx
+++ b/sfx2/source/doc/objcont.cxx
@@ -259,7 +259,7 @@ void SfxObjectShell::UpdateTime_Impl(
// If 1 or up to 31 days between now and last editing - calculate time indirectly.
// nAddTime = (24h - nTime) + (nDays * 24h) + aNow
--nDays;
- nAddTime = nDays*n24Time.GetTime() ;
+ nAddTime = tools::Time( nDays * n24Time.GetTime());
nAddTime += n24Time-static_cast<const tools::Time&>(pImpl->nTime);
nAddTime += aNow ;
}