summaryrefslogtreecommitdiff
path: root/idl/source/prj/parser.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-11 10:01:26 +0200
committerNoel Grandin <noel@peralex.com>2016-02-11 10:01:46 +0200
commit78a072f0a18cc90275b8d2ba630b3be693586327 (patch)
treec1bf3963929b895f8a24ed02e1d5ea476410000d /idl/source/prj/parser.cxx
parent401b7468bdaae0626d1179bc1c98c2882cc38d1d (diff)
improve the parsing loop for the module keyword
Change-Id: I0931ae0edfb45c5d4c67f545a1a5e513c8210e88
Diffstat (limited to 'idl/source/prj/parser.cxx')
-rw-r--r--idl/source/prj/parser.cxx8
1 files changed, 1 insertions, 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<SvMetaModule> aModule = new SvMetaModule( bImported );