summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2009-09-23 09:01:43 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2009-09-23 09:01:43 (GMT)
commitd97256d956ce649df271cb5c7f24029649a061f3 (patch)
treef293399a42c35724eb939ea9c128f4b015eeee99 /src/declarative
parentc646730ca4ef1795973d578a95413ab4c4671a93 (diff)
downloadQt-d97256d956ce649df271cb5c7f24029649a061f3.zip
Qt-d97256d956ce649df271cb5c7f24029649a061f3.tar.gz
Qt-d97256d956ce649df271cb5c7f24029649a061f3.tar.bz2
Make QmlCompositeTypeData a class instead of a struct
This fixes a warning of msvc that apparently doesn't like a struct (QmlCompositeTypeData) extending a class (QmlRefCount): "warning C4099: 'QmlCompositeTypeData' : type name first seen using 'class' now seen using 'struct'"
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/qml/qmlcomponent.h2
-rw-r--r--src/declarative/qml/qmlcompositetypedata_p.h3
-rw-r--r--src/declarative/qml/qmlcompositetypemanager_p.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlcomponent.h b/src/declarative/qml/qmlcomponent.h
index af250e5..c6924e3 100644
--- a/src/declarative/qml/qmlcomponent.h
+++ b/src/declarative/qml/qmlcomponent.h
@@ -106,7 +106,7 @@ private:
QmlComponent(QmlEngine *, QmlCompiledData *, int, int, QObject *parent);
friend class QmlVME;
- friend struct QmlCompositeTypeData;
+ friend class QmlCompositeTypeData;
};
QT_END_NAMESPACE
diff --git a/src/declarative/qml/qmlcompositetypedata_p.h b/src/declarative/qml/qmlcompositetypedata_p.h
index 044b4ca..3d246cc 100644
--- a/src/declarative/qml/qmlcompositetypedata_p.h
+++ b/src/declarative/qml/qmlcompositetypedata_p.h
@@ -58,8 +58,9 @@
QT_BEGIN_NAMESPACE
-struct QmlCompositeTypeData : public QmlRefCount
+class QmlCompositeTypeData : public QmlRefCount
{
+public
QmlCompositeTypeData();
virtual ~QmlCompositeTypeData();
diff --git a/src/declarative/qml/qmlcompositetypemanager_p.h b/src/declarative/qml/qmlcompositetypemanager_p.h
index 41cbe80..8f16998 100644
--- a/src/declarative/qml/qmlcompositetypemanager_p.h
+++ b/src/declarative/qml/qmlcompositetypemanager_p.h
@@ -66,7 +66,7 @@ class QmlComponentPrivate;
class QmlComponent;
class QmlDomDocument;
-struct QmlCompositeTypeData;
+class QmlCompositeTypeData;
class QmlCompositeTypeManager : public QObject
{