Merge branch 'move' of git://github.com/neheb/MPD

This commit is contained in:
Max Kellermann 2021-08-29 06:47:05 +02:00
commit bdd8c34c67
3 changed files with 3 additions and 7 deletions

View File

@ -192,7 +192,7 @@ protected:
if (tag_type == TAG_TITLE)
object.name = TitleToPathSegment(std::move(value));
value.clear();
value = {};
tag_type = TAG_NUM_OF_ITEM_TYPES;
return;
}

View File

@ -170,5 +170,5 @@ void
DecoderControl::CycleMixRamp() noexcept
{
previous_mix_ramp = std::move(mix_ramp);
mix_ramp.Clear();
mix_ramp = {};
}

View File

@ -171,7 +171,6 @@ CueParser::Commit() noexcept
finished = std::move(previous);
previous = std::move(current);
current.reset();
}
void
@ -302,10 +301,7 @@ CueParser::Get() noexcept
assert(current == nullptr);
finished = std::move(previous);
previous.reset();
}
auto result = std::move(finished);
finished.reset();
return result;
return std::move(finished);
}