From 252aab1b9dc1dbeace3087929a52e1248f043839 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 21 Jul 2017 13:32:10 +0200 Subject: 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 Reviewed-by: Eike Rathke --- sw/inc/docufld.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/inc/docufld.hxx') diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx index 5cdeb3ff9030..440f31d306fb 100644 --- a/sw/inc/docufld.hxx +++ b/sw/inc/docufld.hxx @@ -465,7 +465,7 @@ public: const DateTime& GetDateTime() const { return aDateTime; } const Date GetDate() const { return Date(aDateTime.GetDate()); } - const tools::Time GetTime() const { return aDateTime.GetTime(); } + const tools::Time GetTime() const { return tools::Time(aDateTime.GetTime()); } sal_uInt32 GetPostItId() const { return m_nPostItId; } /// Author -- cgit