summaryrefslogtreecommitdiff
path: root/sal/inc/rtl/string.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/inc/rtl/string.hxx')
-rw-r--r--sal/inc/rtl/string.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx
index 47631fd8c9a0..8c98a3657ab2 100644
--- a/sal/inc/rtl/string.hxx
+++ b/sal/inc/rtl/string.hxx
@@ -726,7 +726,7 @@ public:
while ( nIndex >= 0 );
@param token the number of the token to return.
- @param cTok the character which seperate the tokens.
+ @param cTok the character which separate the tokens.
@param index the position at which the token is searched in the
string.
The index must not be greater thanthe length of the
@@ -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');
}
};