summaryrefslogtreecommitdiff
path: root/idl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-06 10:19:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-06 11:53:58 +0100
commit004cc81168ce4e9f9b2f8fddf3361f8c23323673 (patch)
tree16c7009a3fac88766214ff073cab5562555a2f3a /idl/source
parent2429c626b4ae5efcd2edf47dabf4add6a7384dff (diff)
loplugin:collapseif in dbaccess..lotuswordpro
Change-Id: Ia2a0d25c3833dfde0cd28337361f3cbd2aa29662 Reviewed-on: https://gerrit.libreoffice.org/62934 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idl/source')
-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 )