From bb12a7ff8df1582a2cb0583bc463a84f5a736219 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 21 Dec 2023 15:45:34 -0500 Subject: [PATCH] Tweak comment in QPDFParser refactor --- ChangeLog | 5 +++++ libqpdf/qpdf/QPDFParser.hh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c7bd1b2a..414244be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-12-21 Jay Berkenbilt + + * From M. Holger: Refactor QPDFParser for performance. See #1059 + for a discussion. + 2023-12-20 Jay Berkenbilt * Update code and tests so that qpdf's test suite no longer diff --git a/libqpdf/qpdf/QPDFParser.hh b/libqpdf/qpdf/QPDFParser.hh index 7f5f7804..9e2c3c2e 100644 --- a/libqpdf/qpdf/QPDFParser.hh +++ b/libqpdf/qpdf/QPDFParser.hh @@ -32,7 +32,7 @@ class QPDFParser private: // Parser state. Note: - // state < st_dictionary_value == (state = st_dictionary_key || state = st_dictionary_value) + // state <= st_dictionary_value == (state = st_dictionary_key || state = st_dictionary_value) enum parser_state_e { st_dictionary_key, st_dictionary_value, st_array }; struct StackFrame