prevent use after move
These should be equivalent anyway. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
9ca64d5fb3
commit
0b774df375
|
@ -192,7 +192,7 @@ protected:
|
||||||
if (tag_type == TAG_TITLE)
|
if (tag_type == TAG_TITLE)
|
||||||
object.name = TitleToPathSegment(std::move(value));
|
object.name = TitleToPathSegment(std::move(value));
|
||||||
|
|
||||||
value.clear();
|
value = {};
|
||||||
tag_type = TAG_NUM_OF_ITEM_TYPES;
|
tag_type = TAG_NUM_OF_ITEM_TYPES;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,5 +170,5 @@ void
|
||||||
DecoderControl::CycleMixRamp() noexcept
|
DecoderControl::CycleMixRamp() noexcept
|
||||||
{
|
{
|
||||||
previous_mix_ramp = std::move(mix_ramp);
|
previous_mix_ramp = std::move(mix_ramp);
|
||||||
mix_ramp.Clear();
|
mix_ramp = {};
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,7 +171,6 @@ CueParser::Commit() noexcept
|
||||||
|
|
||||||
finished = std::move(previous);
|
finished = std::move(previous);
|
||||||
previous = std::move(current);
|
previous = std::move(current);
|
||||||
current.reset();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -302,10 +301,7 @@ CueParser::Get() noexcept
|
||||||
assert(current == nullptr);
|
assert(current == nullptr);
|
||||||
|
|
||||||
finished = std::move(previous);
|
finished = std::move(previous);
|
||||||
previous.reset();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto result = std::move(finished);
|
return std::move(finished);
|
||||||
finished.reset();
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue