mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWasm: Add a copy assignment operator to Value
This commit is contained in:
parent
c5df55a8a2
commit
85794f8244
Notes:
sideshowbarker
2024-07-18 17:19:39 +09:00
Author: https://github.com/alimpfard
Commit: 85794f8244
Pull-request: https://github.com/SerenityOS/serenity/pull/7482
Reviewed-by: https://github.com/ADKaster
1 changed files with 7 additions and 0 deletions
|
@ -108,6 +108,13 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Value& operator=(const Value& value)
|
||||||
|
{
|
||||||
|
m_value = value.m_value;
|
||||||
|
m_type = value.m_type;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
Optional<T> to()
|
Optional<T> to()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue