[Libreoffice-commits] core.git: idl/source

Michael Weghorn m.weghorn at posteo.de
Wed Dec 17 22:38:52 PST 2014


 idl/source/objects/types.cxx |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit 36936c2580bf15117dd3bf775dd91340d16d3239
Author: Michael Weghorn <m.weghorn at posteo.de>
Date:   Wed Dec 17 20:46:20 2014 +0100

    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 at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx
index fa2f50d..cd41795 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;
     }
 


More information about the Libreoffice-commits mailing list