summaryrefslogtreecommitdiff
path: root/idl/source
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-17 20:46:20 +0100
committerNoel Grandin <noelgrandin@gmail.com>2014-12-18 06:38:14 +0000
commit36936c2580bf15117dd3bf775dd91340d16d3239 (patch)
treee81a67c24d566e8b481e8b56be0ef2792c2d514a /idl/source
parent7efdc59d61c4f57780047627645caed81f3e654c (diff)
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 <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'idl/source')
-rw-r--r--idl/source/objects/types.cxx7
1 files changed, 0 insertions, 7 deletions
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;
}