aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-08-18 14:13:19 +0200
committerm-holger <m-holger@kubitscheck.org>2022-08-18 14:13:19 +0200
commitc08bb0ec0208683ecd0ad89c3d46d4d66b938fbd (patch)
tree9fb07d202eb9c3270b9cc44a30ed72ff543417bc /include
parentcef6425bcac678157f58e9eafabb7e63c5831d18 (diff)
downloadqpdf-c08bb0ec0208683ecd0ad89c3d46d4d66b938fbd.tar.zst
Remove QPDFTokenizer::Members
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFTokenizer.hh59
1 files changed, 23 insertions, 36 deletions
diff --git a/include/qpdf/QPDFTokenizer.hh b/include/qpdf/QPDFTokenizer.hh
index 2187f21e..f1e10d3f 100644
--- a/include/qpdf/QPDFTokenizer.hh
+++ b/include/qpdf/QPDFTokenizer.hh
@@ -211,42 +211,29 @@ class QPDFTokenizer
st_token_ready
};
- class Members
- {
- friend class QPDFTokenizer;
-
- public:
- QPDF_DLL
- ~Members() = default;
-
- private:
- Members();
- Members(Members const&) = delete;
- void reset();
-
- // Lexer state
- state_e state;
-
- bool allow_eof;
- bool include_ignorable;
-
- // Current token accumulation
- token_type_e type;
- std::string val;
- std::string raw_val;
- std::string error_message;
- bool unread_char;
- char char_to_unread;
- size_t inline_image_bytes;
-
- // State for strings
- int string_depth;
- bool string_ignoring_newline;
- char bs_num_register[4];
- bool last_char_was_bs;
- bool last_char_was_cr;
- };
- std::shared_ptr<Members> m;
+ void reset();
+
+ // Lexer state
+ state_e state;
+
+ bool allow_eof;
+ bool include_ignorable;
+
+ // Current token accumulation
+ token_type_e type;
+ std::string val;
+ std::string raw_val;
+ std::string error_message;
+ bool unread_char;
+ char char_to_unread;
+ size_t inline_image_bytes;
+
+ // State for strings
+ int string_depth;
+ bool string_ignoring_newline;
+ char bs_num_register[4];
+ bool last_char_was_bs;
+ bool last_char_was_cr;
};
#endif // QPDFTOKENIZER_HH