Util: Move vector<Token> ownership to Job class

This commit is contained in:
Riyyi
2022-06-26 23:13:25 +02:00
parent bc01b34e58
commit 8fb1a1a8e9
7 changed files with 58 additions and 34 deletions
+4 -3
View File
@@ -24,7 +24,7 @@ class Job;
class Parser {
public:
Parser(std::shared_ptr<Job> job);
Parser(Job* job);
virtual ~Parser();
Value parse();
@@ -38,10 +38,11 @@ private:
Value getArray();
Value getObject();
std::shared_ptr<Job> m_job { nullptr };
Job* m_job { nullptr };
std::vector<Token> m_tokens;
size_t m_index { 0 };
std::vector<Token>* m_tokens { nullptr };
};
} // namespace Json