[Libreoffice-commits] core.git: Branch 'aoo/trunk' - sal/inc
Herbert Dürr
hdu at apache.org
Wed Jun 18 05:09:17 PDT 2014
sal/inc/rtl/string.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit fa6f55c32a3f76b4a9e7810e9d4b07ea9510f4d8
Author: Herbert Dürr <hdu at apache.org>
Date: Wed Jun 18 11:39:01 2014 +0000
#i125112# fix CStringHash functor to match full strings only
diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx
index b05cb09..8c98a36 100644
--- a/sal/inc/rtl/string.hxx
+++ b/sal/inc/rtl/string.hxx
@@ -945,10 +945,10 @@ struct OStringHash
struct CStringEqual
{
bool operator()( const char* p1, const char* p2) const {
- while( *p1)
+ while( *p1 != '\0')
if( *(p1++) != *(p2++))
return false;
- return true;
+ return (*p2 == '\0');
}
};
More information about the Libreoffice-commits
mailing list