Fix warnings.
authorMichael Brasser <michael.brasser@nokia.com>
Fri, 16 Sep 2011 00:44:23 +0000 (10:44 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 16 Sep 2011 01:48:32 +0000 (03:48 +0200)
Change-Id: I7f066550fa2e1799f1c44b787da84c882f549b03
Reviewed-on: http://codereview.qt-project.org/5036
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/declarative/items/qsgcanvas.h
src/declarative/items/qsgitem.h
src/declarative/items/qsgpainteditem.h
src/declarative/qml/qdeclarativeprivate.h
src/declarative/scenegraph/coreapi/qsgnode.h

index b396788..a2bb278 100644 (file)
@@ -85,10 +85,8 @@ public:
     void setRenderTarget(QOpenGLFramebufferObject *fbo);
     QOpenGLFramebufferObject *renderTarget() const;
 
-signals:
-    void frameSwapped();
-
 Q_SIGNALS:
+    void frameSwapped();
     void sceneGraphInitialized();
 
 protected:
@@ -126,7 +124,7 @@ private:
 
 QT_END_NAMESPACE
 
-Q_DECLARE_METATYPE(QSGCanvas *);
+Q_DECLARE_METATYPE(QSGCanvas *)
 
 QT_END_HEADER
 
index 6653a4f..e340a6a 100644 (file)
@@ -78,7 +78,7 @@ protected:
     QSGTransform(QSGTransformPrivate &dd, QObject *parent);
 
 private:
-    Q_DECLARE_PRIVATE(QSGTransform);
+    Q_DECLARE_PRIVATE(QSGTransform)
 };
 
 class QDeclarativeV8Function;
@@ -154,7 +154,7 @@ public:
         ItemClipsChildrenToShape  = 0x01,
         ItemAcceptsInputMethod    = 0x02,
         ItemIsFocusScope          = 0x04,
-        ItemHasContents           = 0x08,
+        ItemHasContents           = 0x08
         // Remember to increment the size of QSGItemPrivate::flags
     };
     Q_DECLARE_FLAGS(Flags, Flag)
@@ -167,7 +167,7 @@ public:
         ItemParentHasChanged,      // value.item
         ItemOpacityHasChanged,     // value.realValue
         ItemActiveFocusHasChanged, // value.boolValue
-        ItemRotationHasChanged,    // value.realValue
+        ItemRotationHasChanged     // value.realValue
     };
 
     union ItemChangeData {
index 244e24b..2d5d260 100644 (file)
@@ -108,8 +108,8 @@ protected:
     virtual QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *);
 
 private:
-    Q_DISABLE_COPY(QSGPaintedItem);
-    Q_DECLARE_PRIVATE(QSGPaintedItem);
+    Q_DISABLE_COPY(QSGPaintedItem)
+    Q_DECLARE_PRIVATE(QSGPaintedItem)
 };
 
 QT_END_NAMESPACE
index e8e8f22..4cf4f06 100644 (file)
@@ -251,7 +251,7 @@ namespace QDeclarativePrivate
         TypeRegistration       = 0, 
         InterfaceRegistration  = 1,
         AutoParentRegistration = 2,
-        ModuleApiRegistration  = 3,
+        ModuleApiRegistration  = 3
     };
 
     int Q_DECLARATIVE_EXPORT qmlregister(RegistrationType, void *);
index c4f4674..58afff4 100644 (file)
@@ -90,7 +90,7 @@ public:
                                       | DirtyClipList
                                       | DirtyNodeAdded
                                       | DirtyOpacity
-                                      | DirtyForceUpdate,
+                                      | DirtyForceUpdate
 
     };
     Q_DECLARE_FLAGS(DirtyFlags, DirtyFlag)
@@ -170,8 +170,8 @@ private:
     void *m_reserved;
 };
 
-Q_DECLARE_OPERATORS_FOR_FLAGS(QSGNode::DirtyFlags);
-Q_DECLARE_OPERATORS_FOR_FLAGS(QSGNode::Flags);
+Q_DECLARE_OPERATORS_FOR_FLAGS(QSGNode::DirtyFlags)
+Q_DECLARE_OPERATORS_FOR_FLAGS(QSGNode::Flags)
 
 class Q_DECLARATIVE_EXPORT QSGBasicGeometryNode : public QSGNode
 {