1. Paul O'Neil
  2. qtd

Commits

Paul O'Neil  committed d1bf147

Add parentheses in boolean expressions

  • Participants
  • Parent commits 26c97b8
  • Branches default

Comments (0)

Files changed (2)

File generator/abstractmetalang.cpp

View file
             continue;
         }
 
-        if ((query & Constructors) && (!f->isConstructor()
-                                       || f->ownerClass() != f->implementingClass())
-            || f->isConstructor() && (query & Constructors) == 0) {
+        if (((query & Constructors) && (!f->isConstructor()
+                                       || f->ownerClass() != f->implementingClass()))
+            || (f->isConstructor() && (query & Constructors)) == 0) {
             continue;
         }
 

File generator/dgenerator.cpp

View file
                                             uint included_attributes, uint excluded_attributes,
                                             uint options)
 {
-    uint attr = d_function->attributes() & (~excluded_attributes) | included_attributes;
+    uint attr = (d_function->attributes() & (~excluded_attributes)) | included_attributes;
 
     if ((attr & AbstractMetaAttributes::Public) || (attr & AbstractMetaAttributes::Protected)) {