diff options
Diffstat (limited to 'src/corelib/tools/qvector.h')
-rw-r--r-- | src/corelib/tools/qvector.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qvector.h b/src/corelib/tools/qvector.h index a01d5c8f3c..e4c7fd06d8 100644 --- a/src/corelib/tools/qvector.h +++ b/src/corelib/tools/qvector.h @@ -283,6 +283,10 @@ public: { append(t); return *this; } inline QVector<T> &operator<<(const QVector<T> &l) { *this += l; return *this; } + inline QVector<T> &operator+=(T &&t) + { append(t); return *this; } + inline QVector<T> &operator<<(T &&t) + { append(t); return *this; } QList<T> toList() const; |