mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
LibACPI: Allow initializing an Object by moving a value
This commit is contained in:
1 parent
ee1cf23dec
commit
e5bb8b4afe
2 files changed
+3
-3
No files matched your search
@@ -317,7 +317,7 @@ ErrorOr<IterationDecision> Interpreter::read_operand(TableStream& stream, Operan
|
||||
case OperandType::NameString: {
|
||||
auto value = TRY(stream.read_name_string());
|
||||
DEBUG_LOG("Reading namestring... ({})", value.to_string());
|
||||
TRY(top_opcode_frame.finish_operand(value, stream.offset()));
|
||||
TRY(top_opcode_frame.finish_operand(move(value), stream.offset()));
|
||||
return IterationDecision::Continue;
|
||||
}
|
||||
case OperandType::PackageLength: {
|
||||
|
||||
@@ -74,8 +74,8 @@ public:
|
||||
}
|
||||
|
||||
template<IsNodeData T>
|
||||
constexpr Object(T const& value)
|
||||
: m_data(value)
|
||||
constexpr Object(T&& value)
|
||||
: m_data(forward<T>(value))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user