summaryrefslogtreecommitdiff
path: root/svtools/source/svrtf
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-07 10:55:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-07 11:32:45 +0200
commit593df166e6dca29c005e2855d9366756a032f9eb (patch)
tree8ca94254d583d93b920b43245e83bb6670323f7b /svtools/source/svrtf
parent33dfe0729fecaf2f40a7d61a9fd8bdcbfba33255 (diff)
Pull assignment out of switch condition
Change-Id: I0a2d6488dcccfb643cb3fce542d013e3f981e657
Diffstat (limited to 'svtools/source/svrtf')
-rw-r--r--svtools/source/svrtf/parrtf.cxx6
1 files changed, 4 insertions, 2 deletions
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 '\'':
{