summaryrefslogtreecommitdiffstats
path: root/src/widgets/util/qcompleter_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/util/qcompleter_p.h')
-rw-r--r--src/widgets/util/qcompleter_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/util/qcompleter_p.h b/src/widgets/util/qcompleter_p.h
index 1ed79f94bc..b100f24f9b 100644
--- a/src/widgets/util/qcompleter_p.h
+++ b/src/widgets/util/qcompleter_p.h
@@ -101,7 +101,7 @@ class QIndexMapper
public:
QIndexMapper() : v(false), f(0), t(-1) { }
QIndexMapper(int f, int t) : v(false), f(f), t(t) { }
- QIndexMapper(QVector<int> vec) : v(true), vector(vec), f(-1), t(-1) { }
+ QIndexMapper(const QVector<int> &vec) : v(true), vector(vec), f(-1), t(-1) { }
inline int count() const { return v ? vector.count() : t - f + 1; }
inline int operator[] (int index) const { return v ? vector[index] : f + index; }