diff options
author | Eric Lemanissier <eric.lemanissier@gmail.com> | 2018-03-09 10:18:02 +0100 |
---|---|---|
committer | Eric Lemanissier <eric.lemanissier@gmail.com> | 2018-03-26 14:29:47 +0000 |
commit | edf96b984d406cb7c00eb83f1b7e8588ac663c1f (patch) | |
tree | 2a0ae8d8f6fe9969103c70c0ce0d45a2fd5b61d1 /src/corelib/tools/qvarlengtharray.h | |
parent | 02ed1b36daebed5f3997bb676cf5e818c0db9d3c (diff) |
fixup oversight in rvalue overloads of operator+=() and operator<<()
ammends 4dee5446bee9c7417bf6f5dc44294a0b7238a9ba
Change-Id: Ia0ca27644eb71815a93d6e76681b8a9e61a4e7ab
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/corelib/tools/qvarlengtharray.h')
-rw-r--r-- | src/corelib/tools/qvarlengtharray.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qvarlengtharray.h b/src/corelib/tools/qvarlengtharray.h index bc22ea26f6..a6bd7847a5 100644 --- a/src/corelib/tools/qvarlengtharray.h +++ b/src/corelib/tools/qvarlengtharray.h @@ -176,11 +176,11 @@ public: inline QVarLengthArray<T, Prealloc> &operator<<(const T &t) { append(t); return *this; } inline QVarLengthArray<T, Prealloc> &operator<<(T &&t) - { append(t); return *this; } + { append(std::move(t)); return *this; } inline QVarLengthArray<T, Prealloc> &operator+=(const T &t) { append(t); return *this; } inline QVarLengthArray<T, Prealloc> &operator+=(T &&t) - { append(t); return *this; } + { append(std::move(t)); return *this; } void prepend(T &&t); void prepend(const T &t); |