summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--idl/inc/parser.hxx2
-rw-r--r--idl/source/prj/parser.cxx14
2 files changed, 5 insertions, 11 deletions
diff --git a/idl/inc/parser.hxx b/idl/inc/parser.hxx
index fd1a3526a1a2..c24fdfb9f1b1 100644
--- a/idl/inc/parser.hxx
+++ b/idl/inc/parser.hxx
@@ -45,7 +45,7 @@ public:
void ReadInterfaceOrShell( SvMetaModule& rModule, MetaTypeType aMetaTypeType );
void ReadInterfaceOrShellEntry( SvMetaClass& rClass );
bool ReadInterfaceOrShellSlot( SvMetaSlot& rSlot );
- bool ReadInterfaceOrShellMethodOrAttribute( SvMetaAttribute& rAttr );
+ void ReadInterfaceOrShellMethodOrAttribute( SvMetaAttribute& rAttr );
void ReadItem();
void ReadStruct();
void ReadEnum();
diff --git a/idl/source/prj/parser.cxx b/idl/source/prj/parser.cxx
index b8899313c586..f9e2f0f8c53e 100644
--- a/idl/source/prj/parser.cxx
+++ b/idl/source/prj/parser.cxx
@@ -323,7 +323,8 @@ void SvIdlParser::ReadInterfaceOrShellEntry(SvMetaClass& rClass)
else
{
xAttr = new SvMetaAttribute( pType );
- bOk = ReadInterfaceOrShellMethodOrAttribute(*xAttr);
+ ReadInterfaceOrShellMethodOrAttribute(*xAttr);
+ bOk = true;
}
if( bOk )
bOk = xAttr->Test( rInStm );
@@ -387,10 +388,8 @@ bool SvIdlParser::ReadInterfaceOrShellSlot(SvMetaSlot& rSlot)
return bOk;
}
-bool SvIdlParser::ReadInterfaceOrShellMethodOrAttribute( SvMetaAttribute& rAttr )
+void SvIdlParser::ReadInterfaceOrShellMethodOrAttribute( SvMetaAttribute& rAttr )
{
- sal_uInt32 nTokPos = rInStm.Tell();
- bool bOk = false;
rAttr.SetName( ReadIdentifier() );
rAttr.aSlotId.setString( ReadIdentifier() );
sal_uLong n;
@@ -398,7 +397,6 @@ bool SvIdlParser::ReadInterfaceOrShellMethodOrAttribute( SvMetaAttribute& rAttr
throw SvParseException( rInStm, "no value for identifier <" + rAttr.aSlotId.getString() + "> " );
rAttr.aSlotId.SetValue(n);
- bOk = true;
if( ReadIf( '(' ) )
{
// read method arguments
@@ -420,14 +418,10 @@ bool SvIdlParser::ReadInterfaceOrShellMethodOrAttribute( SvMetaAttribute& rAttr
Read( ')' );
rAttr.aType->SetType( MetaTypeType::Method );
}
- if( bOk && ReadIf( '[' ) )
+ if( ReadIf( '[' ) )
{
Read( ']' );
}
-
- if( !bOk )
- rInStm.Seek( nTokPos );
- return bOk;
}
SvMetaClass * SvIdlParser::ReadKnownClass()