From 78a072f0a18cc90275b8d2ba630b3be693586327 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 11 Feb 2016 10:01:26 +0200 Subject: improve the parsing loop for the module keyword Change-Id: I0931ae0edfb45c5d4c67f545a1a5e513c8210e88 --- idl/source/prj/parser.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/idl/source/prj/parser.cxx b/idl/source/prj/parser.cxx index 4bb0320b0f36..db594ab43bd0 100644 --- a/idl/source/prj/parser.cxx +++ b/idl/source/prj/parser.cxx @@ -55,18 +55,12 @@ bool SvIdlParser::ReadSvIdl( SvIdlDataBase& rBase, SvTokenStream & rInStm, bool bOk = false; } - sal_uInt32 nBeginPos = 0xFFFFFFFF; // can not happen with Tell - - while( bOk && nBeginPos != rInStm.Tell() ) + while( bOk ) { - nBeginPos = rInStm.Tell(); pTok = &rInStm.GetToken(); if( pTok->IsEof() ) return true; - if( pTok->IsEmpty() ) - bOk = false; - // only one import at the very beginning if( pTok->Is( SvHash_module() ) ) { tools::SvRef aModule = new SvMetaModule( bImported ); -- cgit