[Libreoffice-commits] core.git: tools/source

Stephan Bergmann sbergman at redhat.com
Fri Jun 29 19:10:16 UTC 2018


 tools/source/datetime/datetime.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 65866a93f736226f57e4622e6908cb7a32a79068
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jun 29 15:56:39 2018 +0200

    Improved loplugin:redundantcast (const-qualified typedefs): tools
    
    Change-Id: I919e49f8581d38a82622ca4b8cf9c08de8da4964
    Reviewed-on: https://gerrit.libreoffice.org/56705
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

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<sal_Int32>(nDays), "tools.datetime",
+    SAL_WARN_IF(aDate - Date(1, 1, 1970) != nDays, "tools.datetime",
                 "DateTime::CreateFromUnixTime - date truncated to max");
 
     fValue -= nDays;


More information about the Libreoffice-commits mailing list