From 36936c2580bf15117dd3bf775dd91340d16d3239 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Wed, 17 Dec 2014 20:46:20 +0100 Subject: remove if-block that has no effect If the outer if-block is entered, 'aIsCollection' is returned, no matter whether the inner if-block is entered or not. Change-Id: Ief33e6fe6e29d1dfe287095424dac92e7f7d06b0 Reviewed-on: https://gerrit.libreoffice.org/13512 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- idl/source/objects/types.cxx | 7 ------- 1 file changed, 7 deletions(-) (limited to 'idl/source') diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index fa2f50d34db3..cd4179559281 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -92,15 +92,8 @@ bool SvMetaAttribute::GetAutomation() const bool SvMetaAttribute::GetIsCollection() const { - bool bRet; if( aIsCollection.IsSet() || !GetRef() ) { - if ( aIsCollection.IsSet() ) - { - bRet = aIsCollection; - return bRet; - } - return aIsCollection; } -- cgit