Commit f689769ccab2f98924f5e22ed145fdbd041f5e1d
Committed by
Jay Berkenbilt
1 parent
863d95e5
Refactor QPDFTokenizer::readToken
Showing
1 changed file
with
4 additions
and
1 deletions
include/qpdf/QPDFTokenizer.hh
| ... | ... | @@ -204,6 +204,9 @@ class QPDFTokenizer |
| 204 | 204 | QPDF_DLL |
| 205 | 205 | void expectInlineImage(std::shared_ptr<InputSource> input); |
| 206 | 206 | |
| 207 | + private: | |
| 208 | + friend class QPDFParser; | |
| 209 | + | |
| 207 | 210 | // Read a token from an input source. Context describes the |
| 208 | 211 | // context in which the token is being read and is used in the |
| 209 | 212 | // exception thrown if there is an error. After a token is read, |
| ... | ... | @@ -212,7 +215,7 @@ class QPDFTokenizer |
| 212 | 215 | // offset" as returned by input->getLastOffset() points to the |
| 213 | 216 | // beginning of the token. Returns false if the token is bad |
| 214 | 217 | // or if scanning produced an error message for any reason. |
| 215 | - QPDF_DLL | |
| 218 | + | |
| 216 | 219 | bool nextToken( |
| 217 | 220 | InputSource& input, std::string const& context, size_t max_len = 0); |
| 218 | 221 | ... | ... |