diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-17 10:01:21 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-17 10:52:07 (GMT) |
commit | 213e2c937b667dba7e4996b0857ae5791c6d5fc8 (patch) | |
tree | b8db403c4859966fa7a18fcf413a00cf8e3eecd4 /src/gui/itemviews/qlistview_p.h | |
parent | 83940f25dba51a9942ab55ed8475fc7fc8a8da84 (diff) | |
download | Qt-213e2c937b667dba7e4996b0857ae5791c6d5fc8.zip Qt-213e2c937b667dba7e4996b0857ae5791c6d5fc8.tar.gz Qt-213e2c937b667dba7e4996b0857ae5791c6d5fc8.tar.bz2 |
Fixed coverity warnings
Diffstat (limited to 'src/gui/itemviews/qlistview_p.h')
-rw-r--r-- | src/gui/itemviews/qlistview_p.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/itemviews/qlistview_p.h b/src/gui/itemviews/qlistview_p.h index 1131059..6c8d324 100644 --- a/src/gui/itemviews/qlistview_p.h +++ b/src/gui/itemviews/qlistview_p.h @@ -351,9 +351,10 @@ public: QItemViewPaintPairs draggablePaintPairs(const QModelIndexList &indexes, QRect *r) const; - // ### FIXME: we only need one at a time - QDynamicListViewBase *dynamicListView; - QStaticListViewBase *staticListView; + union { + QDynamicListViewBase *dynamicListView; + QStaticListViewBase *staticListView; + }; // ### FIXME: see if we can move the members into the dynamic/static classes |