1
Fork 0
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:
Matthew Olsson 2021-05-24 13:41:40 -07:00 committed by Ali Mohammad Pur
parent bd9e20ef79
commit d654fe0e41
3 changed files with 15 additions and 2 deletions

View file

@ -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: