diff options
author | Sérgio Martins <sergio.martins@kdab.com> | 2015-12-18 22:24:47 +0000 |
---|---|---|
committer | Sérgio Martins <iamsergio@gmail.com> | 2015-12-21 22:18:28 +0000 |
commit | b17e71dd082d12450217f12cb7a802949c9179e1 (patch) | |
tree | 557aa87bc260ad93813159876a391710375f8740 /src/widgets | |
parent | 7facc281e596f609af39f5fe11652215d4c16d42 (diff) |
QListViewItem: Remove pointless copy ctor
Fixes static analyzer warning.
Change-Id: I4f1bec1da5b2e90a1aeae699a9e3e329f1cc9199
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/itemviews/qlistview_p.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/widgets/itemviews/qlistview_p.h b/src/widgets/itemviews/qlistview_p.h index c1b5b8772c..cc8ec484cd 100644 --- a/src/widgets/itemviews/qlistview_p.h +++ b/src/widgets/itemviews/qlistview_p.h @@ -64,9 +64,6 @@ class QListViewItem public: inline QListViewItem() : x(-1), y(-1), w(0), h(0), indexHint(-1), visited(0xffff) {} - inline QListViewItem(const QListViewItem &other) - : x(other.x), y(other.y), w(other.w), h(other.h), - indexHint(other.indexHint), visited(other.visited) {} inline QListViewItem(QRect r, int i) : x(r.x()), y(r.y()), w(qMin(r.width(), SHRT_MAX)), h(qMin(r.height(), SHRT_MAX)), indexHint(i), visited(0xffff) {} |