QListViewItem: Remove pointless copy ctor

Fixes static analyzer warning.

Change-Id: I4f1bec1da5b2e90a1aeae699a9e3e329f1cc9199
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
bb10
Sérgio Martins 2015-12-18 22:24:47 +00:00 committed by Sérgio Martins
parent 7facc281e5
commit b17e71dd08
1 changed files with 0 additions and 3 deletions

View File

@ -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) {}