Kaydet (Commit) 05fac639 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-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
üst ae91d60b
...@@ -1980,7 +1980,7 @@ OString SvMetaAttribute::Compare( SvMetaAttribute* pAttr ) ...@@ -1980,7 +1980,7 @@ OString SvMetaAttribute::Compare( SvMetaAttribute* pAttr )
if ( aType->GetType() == TYPE_METHOD ) if ( aType->GetType() == TYPE_METHOD )
{ {
// Test only when the attribute is a method not if it has one! // 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"); aStr.append(" IsMethod\n");
else if ( aType->GetReturnType() && else if ( aType->GetReturnType() &&
aType->GetReturnType()->GetType() != pAttr->GetType()->GetReturnType()->GetType() ) aType->GetReturnType()->GetType() != pAttr->GetType()->GetReturnType()->GetType() )
......
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