Commits

Paul O'Neil committed a44807b

Silence some compiler warnings

AbstractMetaClass::setHasVirtualDestructor() does not return a value
Put some parentheses around an '&&' expression

Comments (0)

Files changed (1)

generator/abstractmetalang.h

     // returns true if this class or its base classes have a
     // virtual destructor
     bool hasVirtualDestructor() const { return m_has_virtual_destructor
-        || m_base_class && m_base_class->hasVirtualDestructor(); }
+        || (m_base_class && m_base_class->hasVirtualDestructor()); }
 
     const AbstractMetaClass* destructorBase() const
     {
         return false;
     }
 
-    bool setHasVirtualDestructor(bool value) { m_has_virtual_destructor = value; }
+    void setHasVirtualDestructor(bool value) { m_has_virtual_destructor = value; }
 
     QList<TypeEntry *> templateArguments() const { return m_template_args; }
     void setTemplateArguments(const QList<TypeEntry *> &args) { m_template_args = args; }