diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2009-09-23 09:01:43 (GMT) |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2009-09-23 09:01:43 (GMT) |
commit | d97256d956ce649df271cb5c7f24029649a061f3 (patch) | |
tree | f293399a42c35724eb939ea9c128f4b015eeee99 /src/declarative | |
parent | c646730ca4ef1795973d578a95413ab4c4671a93 (diff) | |
download | Qt-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.h | 2 | ||||
-rw-r--r-- | src/declarative/qml/qmlcompositetypedata_p.h | 3 | ||||
-rw-r--r-- | src/declarative/qml/qmlcompositetypemanager_p.h | 2 |
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 { |