diff options
Diffstat (limited to 'comphelper/source')
-rw-r--r-- | comphelper/source/misc/string.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/comphelper/source/misc/string.cxx b/comphelper/source/misc/string.cxx index f59653130e06..d5d249eb91f6 100644 --- a/comphelper/source/misc/string.cxx +++ b/comphelper/source/misc/string.cxx @@ -331,7 +331,8 @@ sal_Int32 compareNatural( const OUString & rLHS, const OUString & rRHS, break; } - //Squeeze these down to -1, 0, 1 in case it gets casted to a StringCompare + //Squeeze these down to -1, 0, 1 in case there is an assumption those are + //the only valid returns if (nRet > 0) nRet = 1; else if (nRet < 0) |