From 004cc81168ce4e9f9b2f8fddf3361f8c23323673 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 6 Nov 2018 10:19:19 +0200 Subject: loplugin:collapseif in dbaccess..lotuswordpro Change-Id: Ia2a0d25c3833dfde0cd28337361f3cbd2aa29662 Reviewed-on: https://gerrit.libreoffice.org/62934 Tested-by: Jenkins Reviewed-by: Noel Grandin --- idl/source/objects/basobj.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'idl/source') 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 ) -- cgit