mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 02:38:13 +00:00
LibPDF: Differentiate Value's null and empty states
This commit is contained in:
parent
bd9e20ef79
commit
d654fe0e41
3 changed files with 15 additions and 2 deletions
|
@ -19,6 +19,7 @@ Value& Value::operator=(const Value& other)
|
|||
{
|
||||
m_type = other.m_type;
|
||||
switch (m_type) {
|
||||
case Type::Empty:
|
||||
case Type::Null:
|
||||
break;
|
||||
case Type::Bool:
|
||||
|
@ -45,6 +46,8 @@ Value& Value::operator=(const Value& other)
|
|||
String Value::to_string(int indent) const
|
||||
{
|
||||
switch (m_type) {
|
||||
case Type::Empty:
|
||||
return "<empty>";
|
||||
case Type::Null:
|
||||
return "null";
|
||||
case Type::Bool:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue