summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 '\'':
{