You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/05/16 14:53:46 UTC
svn commit: r1483328 - /openoffice/trunk/main/sal/inc/rtl/string.hxx
Author: hdu
Date: Thu May 16 12:53:45 2013
New Revision: 1483328
URL: http://svn.apache.org/r1483328
Log:
fix the long cast to eliminate the little warning
Modified:
openoffice/trunk/main/sal/inc/rtl/string.hxx
Modified: openoffice/trunk/main/sal/inc/rtl/string.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/inc/rtl/string.hxx?rev=1483328&r1=1483327&r2=1483328&view=diff
==============================================================================
--- openoffice/trunk/main/sal/inc/rtl/string.hxx (original)
+++ openoffice/trunk/main/sal/inc/rtl/string.hxx Thu May 16 12:53:45 2013
@@ -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;
}
};