summaryrefslogtreecommitdiff
path: root/basic/source/sbx/sbxexec.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-06 10:16:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-06 10:28:47 +0100
commit819149fb1f71fc13ffdc288736ce65bb3c6c75d8 (patch)
tree55e663505dce8b7a36ec5aab1f8d6cc956522cf5 /basic/source/sbx/sbxexec.cxx
parent00055d49f35bbabd46d00fefd395b46872ed45aa (diff)
loplugin:collapseif in accessibility..cui
Change-Id: I1437b493f3289b4ac97d061bd71973580571e792 Reviewed-on: https://gerrit.libreoffice.org/62933 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/sbx/sbxexec.cxx')
-rw-r--r--basic/source/sbx/sbxexec.cxx7
1 files changed, 2 insertions, 5 deletions
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++);
}