diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2010-03-12 12:05:42 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2010-03-15 13:27:30 (GMT) |
commit | ff5349090312e5a4d1ab22820440ea717cc2fd04 (patch) | |
tree | 91e0c77be91bbbce07c2bb20b7f6e6368d014a44 /src/declarative/qml/qdeclarativelist.h | |
parent | 615d51e094e9cd9db6b5adf85c598fad78df650e (diff) | |
download | Qt-ff5349090312e5a4d1ab22820440ea717cc2fd04.zip Qt-ff5349090312e5a4d1ab22820440ea717cc2fd04.tar.gz Qt-ff5349090312e5a4d1ab22820440ea717cc2fd04.tar.bz2 |
--warn;
Diffstat (limited to 'src/declarative/qml/qdeclarativelist.h')
-rw-r--r-- | src/declarative/qml/qdeclarativelist.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/qml/qdeclarativelist.h b/src/declarative/qml/qdeclarativelist.h index eac4967..ed402a8 100644 --- a/src/declarative/qml/qdeclarativelist.h +++ b/src/declarative/qml/qdeclarativelist.h @@ -61,12 +61,12 @@ struct QDeclarativeListProperty { typedef T *(*AtFunction)(QDeclarativeListProperty<T> *, int); typedef void (*ClearFunction)(QDeclarativeListProperty<T> *); - QDeclarativeListProperty() + QDeclarativeListProperty() : object(0), data(0), append(0), count(0), at(0), clear(0), dummy1(0), dummy2(0) {} QDeclarativeListProperty(QObject *o, QList<T *> &list) : object(o), data(&list), append(qlist_append), count(qlist_count), at(qlist_at), clear(qlist_clear), dummy1(0), dummy2(0) {} - QDeclarativeListProperty(QObject *o, void *d, AppendFunction a, CountFunction c = 0, AtFunction t = 0, + QDeclarativeListProperty(QObject *o, void *d, AppendFunction a, CountFunction c = 0, AtFunction t = 0, ClearFunction r = 0) : object(o), data(d), append(a), count(c), at(t), clear(r), dummy1(0), dummy2(0) {} @@ -81,7 +81,7 @@ struct QDeclarativeListProperty { QObject *object; void *data; - + AppendFunction append; CountFunction count; @@ -94,7 +94,7 @@ struct QDeclarativeListProperty { private: static void qlist_append(QDeclarativeListProperty *p, T *v) { - ((QList<T *> *)p->data)->append(v); + ((QList<T *> *)p->data)->append(v); } static int qlist_count(QDeclarativeListProperty *p) { return ((QList<T *> *)p->data)->count(); |