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
commit d654fe0e41
Notes: sideshowbarker 2024-07-18 12:21:45 +09:00
3 changed files with 15 additions and 2 deletions

View file

@ -268,7 +268,7 @@ Value Parser::parse_value()
if (m_reader.matches("null")) {
m_reader.move_by(4);
consume_whitespace();
return Value();
return Value(Value::NullTag {});
}
if (m_reader.matches("true")) {