summaryrefslogtreecommitdiff
path: root/idl/source/objects/basobj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'idl/source/objects/basobj.cxx')
-rw-r--r--idl/source/objects/basobj.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/idl/source/objects/basobj.cxx b/idl/source/objects/basobj.cxx
index 18784acbab93..6ec830a6f739 100644
--- a/idl/source/objects/basobj.cxx
+++ b/idl/source/objects/basobj.cxx
@@ -123,13 +123,10 @@ bool SvMetaObject::ReadSvIdl( SvIdlDataBase & rBase, SvTokenStream & rInStm )
bOk = rInStm.ReadIf( ']' );
}
- if( bOk )
+ if( bOk && rInStm.ReadIf( '{' ) )
{
- if( rInStm.ReadIf( '{' ) )
- {
- DoReadContextSvIdl( rBase, rInStm );
- bOk = rInStm.ReadIf( '}' );
- }
+ DoReadContextSvIdl( rBase, rInStm );
+ bOk = rInStm.ReadIf( '}' );
}
if( !bOk )