Commit 0b774df3 authored by Rosen Penev's avatar Rosen Penev

prevent use after move

These should be equivalent anyway. Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent 9ca64d5f
......@@ -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;
}
......
......@@ -170,5 +170,5 @@ void
DecoderControl::CycleMixRamp() noexcept
{
previous_mix_ramp = std::move(mix_ramp);
mix_ramp.Clear();
mix_ramp = {};
}
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment