Kaydet (Commit) 36936c25 authored tarafından Michael Weghorn's avatar Michael Weghorn Kaydeden (comit) Noel Grandin

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/13512Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 7efdc59d
...@@ -92,15 +92,8 @@ bool SvMetaAttribute::GetAutomation() const ...@@ -92,15 +92,8 @@ bool SvMetaAttribute::GetAutomation() const
bool SvMetaAttribute::GetIsCollection() const bool SvMetaAttribute::GetIsCollection() const
{ {
bool bRet;
if( aIsCollection.IsSet() || !GetRef() ) if( aIsCollection.IsSet() || !GetRef() )
{ {
if ( aIsCollection.IsSet() )
{
bRet = aIsCollection;
return bRet;
}
return aIsCollection; return aIsCollection;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment