diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-07-08 11:45:19 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-07-08 17:32:24 +0200 |
commit | 05fac639a2fb44fdb95309d578124816f3b70bb2 (patch) | |
tree | ca122a23036a1956b9042266da8ec1bf770e1fda /idl | |
parent | ae91d60b363a2d7e0f57d090c911137a790d970f (diff) |
-Werror,-Wlogical-not-parentheses (Clang trunk towards 3.4)
...the apparently mistyped condition happened to work as intended, given that
TYPE_METHOD is zero.
Change-Id: I468013ab61caff45c174da752ffb1c9ca9d373bd
Diffstat (limited to 'idl')
-rw-r--r-- | idl/source/objects/types.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index d55083f7c09e..c1ecbf82cf22 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -1980,7 +1980,7 @@ OString SvMetaAttribute::Compare( SvMetaAttribute* pAttr ) if ( aType->GetType() == TYPE_METHOD ) { // Test only when the attribute is a method not if it has one! - if ( !pAttr->GetType()->GetType() == TYPE_METHOD ) + if ( pAttr->GetType()->GetType() != TYPE_METHOD ) aStr.append(" IsMethod\n"); else if ( aType->GetReturnType() && aType->GetReturnType()->GetType() != pAttr->GetType()->GetReturnType()->GetType() ) |