diff options
Diffstat (limited to 'svtools/source/svrtf/parrtf.cxx')
-rw-r--r-- | svtools/source/svrtf/parrtf.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx index 1ac63c32c342..b6b4ffca6ddf 100644 --- a/svtools/source/svrtf/parrtf.cxx +++ b/svtools/source/svrtf/parrtf.cxx @@ -602,12 +602,8 @@ void SvRTFParser::Continue( int nToken ) if( !nToken ) nToken = GetNextToken(); - bool bLooping = false; - - while (IsParserWorking() && !bLooping) + while( IsParserWorking() ) { - auto nCurrentTokenIndex = m_nTokenIndex; - SaveState( nToken ); switch( nToken ) { @@ -664,8 +660,6 @@ NEXTTOKEN: SaveState( 0 ); // processed till here, // continue with new token! nToken = GetNextToken(); - - bLooping = nCurrentTokenIndex == m_nTokenIndex; } if( SvParserState::Accepted == eState && 0 < nOpenBrakets ) eState = SvParserState::Error; |