diff options
author | Neil <nyamatongwe@gmail.com> | 2018-04-20 08:51:26 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-04-20 08:51:26 +1000 |
commit | 81b1bf6c265f77dd38901f76cdb4c97b3e85fd79 (patch) | |
tree | 157b6d48765c5cbc7863a7710f383615df6b38ec /src/SplitVector.h | |
parent | 1cee960e86b1ffee375df8f543e755afc96d46ff (diff) | |
download | scintilla-mirror-81b1bf6c265f77dd38901f76cdb4c97b3e85fd79.tar.gz |
Backport: Feature [feature-requests:#1215]. Fix forwarding reference warnings.
Backport of changeset 6711:8d202ec5a734.
Diffstat (limited to 'src/SplitVector.h')
-rw-r--r-- | src/SplitVector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SplitVector.h b/src/SplitVector.h index 16dec6e98..3fb595eef 100644 --- a/src/SplitVector.h +++ b/src/SplitVector.h @@ -130,14 +130,14 @@ public: if (position < 0) { ; } else { - body[position] = std::move(v); + body[position] = std::forward<ParamType>(v); } } else { PLATFORM_ASSERT(position < lengthBody); if (position >= lengthBody) { ; } else { - body[gapLength + position] = std::move(v); + body[gapLength + position] = std::forward<ParamType>(v); } } } |