Fix a warning about named return value not being moved-from.

The use of an rvalue reference here was using reference lifetime
extension needlessly - the code is simpler and more efficient without
it.
This commit is contained in:
David Blaikie 2021-03-01 09:14:15 -08:00
parent c89d9d8a48
commit e913a75414
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ bool OptionValue::DumpQualifiedName(Stream &strm) const {
}
OptionValueSP OptionValue::DeepCopy(const OptionValueSP &new_parent) const {
auto &&clone = Clone();
auto clone = Clone();
clone->SetParent(new_parent);
return clone;
}