summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-10-18 13:24:44 +0300
committerTor Lillqvist <tml@collabora.com>2017-10-19 11:36:27 +0300
commit049fc31e5557eada26a39bf8a06bfdb8f1cbb205 (patch)
tree0bd141d2f8106eaf758c361b239251ede0be66e8 /sc
parentf47804d56270ef4f0ee000bb6a1dfb45fa9bc4ac (diff)
Fix assertion to check the right thing
We want to assert that the token separator character is not one of the quote pair characters. Change-Id: Ic6114238f4a45a4f1ed7d255e7e9da3519479148
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/stringutil.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/stringutil.cxx b/sc/source/core/tool/stringutil.cxx
index afcbe7412474..72f579fd384a 100644
--- a/sc/source/core/tool/stringutil.cxx
+++ b/sc/source/core/tool/stringutil.cxx
@@ -348,7 +348,7 @@ bool ScStringUtil::parseSimpleNumber(
sal_Int32 ScStringUtil::GetQuotedTokenCount(const OUString &rIn, const OUString& rQuotedPairs, sal_Unicode cTok )
{
assert( !(rQuotedPairs.getLength()%2) );
- assert( rQuotedPairs.indexOf(cTok) );
+ assert( rQuotedPairs.indexOf(cTok) == -1 );
// empty string: TokenCount is 0 per definition
if ( rIn.isEmpty() )