aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PerLine.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/PerLine.cxx')
-rw-r--r--src/PerLine.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx
index b258c745c..d8cf729c3 100644
--- a/src/PerLine.cxx
+++ b/src/PerLine.cxx
@@ -78,11 +78,7 @@ bool MarkerHandleSet::RemoveNumber(int markerNum, bool all) {
}
void MarkerHandleSet::CombineWith(MarkerHandleSet *other) {
- if (mhList.empty()) {
- mhList = std::move(other->mhList);
- } else {
- mhList.splice_after(mhList.cbegin(), other->mhList);
- }
+ mhList.splice_after(mhList.before_begin(), other->mhList);
}
LineMarkers::~LineMarkers() {