From 10470df251bacc1a9f01fadf07e8e03d0a934ffe Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 22 May 2017 11:00:32 +1000 Subject: More canonical version of previous change 6283. --- src/PerLine.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') 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() { -- cgit v1.2.3