Kaydet (Commit) 78a072f0 authored tarafından Noel Grandin's avatar Noel Grandin

improve the parsing loop for the module keyword

Change-Id: I0931ae0edfb45c5d4c67f545a1a5e513c8210e88
üst 401b7468
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment