From 65866a93f736226f57e4622e6908cb7a32a79068 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 29 Jun 2018 15:56:39 +0200 Subject: Improved loplugin:redundantcast (const-qualified typedefs): tools Change-Id: I919e49f8581d38a82622ca4b8cf9c08de8da4964 Reviewed-on: https://gerrit.libreoffice.org/56705 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- tools/source/datetime/datetime.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/source/datetime/datetime.cxx b/tools/source/datetime/datetime.cxx index 1dc2b79cb990..b92ce702e3cd 100644 --- a/tools/source/datetime/datetime.cxx +++ b/tools/source/datetime/datetime.cxx @@ -304,7 +304,7 @@ DateTime DateTime::CreateFromUnixTime(const double fSecondsSinceEpoch) Date aDate (1, 1, 1970); aDate.AddDays(nDays); - SAL_WARN_IF(aDate - Date(1, 1, 1970) != static_cast(nDays), "tools.datetime", + SAL_WARN_IF(aDate - Date(1, 1, 1970) != nDays, "tools.datetime", "DateTime::CreateFromUnixTime - date truncated to max"); fValue -= nDays; -- cgit