[Libreoffice-commits] core.git: idl/source
Noel Grandin
noel at peralex.com
Thu Feb 11 13:28:10 UTC 2016
idl/source/objects/types.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 8db11c905600d8f71fcdeb7f1849c01f64a49a50
Author: Noel Grandin <noel at peralex.com>
Date: Thu Feb 11 15:27:09 2016 +0200
fix dead code warning on Windows
Change-Id: I7b23442b34c7f2dcc2c44c33613fb66e6eb1b14b
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx
index f0bf9d6..eb48cf6 100644
--- a/idl/source/objects/types.cxx
+++ b/idl/source/objects/types.cxx
@@ -52,13 +52,11 @@ const SvIdentifier & SvMetaAttribute::GetSlotId() const
bool SvMetaAttribute::Test( SvTokenStream & rInStm )
{
- bool bOk = true;
if( GetType()->IsItem() && !GetSlotId().IsSet() )
{
throw SvParseException( rInStm, "slot without id declared" );
- bOk = false;
}
- return bOk;
+ return true;
}
bool SvMetaAttribute::ReadSvIdl( SvIdlDataBase & rBase,
More information about the Libreoffice-commits
mailing list