From 819149fb1f71fc13ffdc288736ce65bb3c6c75d8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 6 Nov 2018 10:16:38 +0200 Subject: loplugin:collapseif in accessibility..cui Change-Id: I1437b493f3289b4ac97d061bd71973580571e792 Reviewed-on: https://gerrit.libreoffice.org/62933 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/sbx/sbxexec.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'basic/source/sbx') diff --git a/basic/source/sbx/sbxexec.cxx b/basic/source/sbx/sbxexec.cxx index efbd45052df8..f2f23049dcb6 100644 --- a/basic/source/sbx/sbxexec.cxx +++ b/basic/source/sbx/sbxexec.cxx @@ -150,12 +150,9 @@ static SbxVariableRef Operand return nullptr; } // Double quotes are OK - if( *p == '"' ) + if( *p == '"' && (*++p) != '"' ) { - if( *++p != '"' ) - { - break; - } + break; } aString.append(*p++); } -- cgit