LibACPI: Allow initializing an Object by moving a value

This commit is contained in:
Undefine authored and Sönke Holz committed 2026-11-07 13:27:30 +01:00
1 parent ee1cf23dec
commit e5bb8b4afe
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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: {
+2 -2
View File
@@ -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))
{
}