aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/SplitVector.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-20 08:51:26 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-20 08:51:26 +1000
commit5fbd69640016de7c52bc946b5a4b6eec38364106 (patch)
tree3e2318def7cdccd8e351bfd10fb42dd8cd1c4ee8 /src/SplitVector.h
parent48c589692d23ce0ce0dd1ac596bdfe7d28568d0c (diff)
downloadscintilla-mirror-5fbd69640016de7c52bc946b5a4b6eec38364106.tar.gz
Feature [feature-requests:#1215]. Fix forwarding reference warnings.
Diffstat (limited to 'src/SplitVector.h')
-rw-r--r--src/SplitVector.h4
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);
}
}
}