Kaydet (Commit) 049fc31e authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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
üst f47804d5
...@@ -348,7 +348,7 @@ bool ScStringUtil::parseSimpleNumber( ...@@ -348,7 +348,7 @@ bool ScStringUtil::parseSimpleNumber(
sal_Int32 ScStringUtil::GetQuotedTokenCount(const OUString &rIn, const OUString& rQuotedPairs, sal_Unicode cTok ) sal_Int32 ScStringUtil::GetQuotedTokenCount(const OUString &rIn, const OUString& rQuotedPairs, sal_Unicode cTok )
{ {
assert( !(rQuotedPairs.getLength()%2) ); assert( !(rQuotedPairs.getLength()%2) );
assert( rQuotedPairs.indexOf(cTok) ); assert( rQuotedPairs.indexOf(cTok) == -1 );
// empty string: TokenCount is 0 per definition // empty string: TokenCount is 0 per definition
if ( rIn.isEmpty() ) if ( rIn.isEmpty() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment