From 593df166e6dca29c005e2855d9366756a032f9eb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 7 Oct 2015 10:55:10 +0200 Subject: Pull assignment out of switch condition Change-Id: I0a2d6488dcccfb643cb3fce542d013e3f981e657 --- svtools/source/svrtf/parrtf.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'svtools/source/svrtf') diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx index 562090d52ac5..1691ed7947d8 100644 --- a/svtools/source/svrtf/parrtf.cxx +++ b/svtools/source/svrtf/parrtf.cxx @@ -64,7 +64,8 @@ int SvRTFParser::_GetNextToken() case '\\': { // control charaters - switch( nNextCh = GetNextChar() ) + nNextCh = GetNextChar(); + switch( nNextCh ) { case '{': case '}': @@ -316,7 +317,8 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak ) { case '\\': { - switch (nNextCh = GetNextChar()) + nNextCh = GetNextChar(); + switch (nNextCh) { case '\'': { -- cgit v1.2.3