QListViewItem: Remove pointless copy ctor
Fixes static analyzer warning. Change-Id: I4f1bec1da5b2e90a1aeae699a9e3e329f1cc9199 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>bb10
parent
7facc281e5
commit
b17e71dd08
|
|
@ -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) {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue