[Libreoffice-commits] core.git: Branch 'aoo/trunk' - sal/inc

Herbert Dürr hdu at apache.org
Thu May 16 07:07:40 PDT 2013


 sal/inc/rtl/string.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7f6f4407437933ef1ca9d9d33f921bafda0114ba
Author: Herbert Dürr <hdu at apache.org>
Date:   Thu May 16 12:53:45 2013 +0000

    fix the long cast to eliminate the little warning

diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx
index dcd6ca4..ebf3e30 100644
--- a/sal/inc/rtl/string.hxx
+++ b/sal/inc/rtl/string.hxx
@@ -947,7 +947,7 @@ struct CStringHash
     size_t operator()( const char* p) const {
         size_t n = 0;
         while( *p)
-            n += 4*n + *static_cast<const unsigned char*>(p++);
+            n += 4*n + *reinterpret_cast<const unsigned char*>(p++);
         return n;
     }
 };


More information about the Libreoffice-commits mailing list