[Libreoffice-commits] core.git: sc/source

Tor Lillqvist tml at collabora.com
Thu Oct 19 09:02:26 UTC 2017


 sc/source/core/tool/stringutil.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 049fc31e5557eada26a39bf8a06bfdb8f1cbb205
Author: Tor Lillqvist <tml at collabora.com>
Date:   Wed Oct 18 13:24:44 2017 +0300

    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

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() )


More information about the Libreoffice-commits mailing list