diff options
Diffstat (limited to 'test/core/parser')
-rw-r--r-- | test/core/parser/ParserStackTest.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/core/parser/ParserStackTest.cpp b/test/core/parser/ParserStackTest.cpp index 08c0548..ed57260 100644 --- a/test/core/parser/ParserStackTest.cpp +++ b/test/core/parser/ParserStackTest.cpp @@ -39,7 +39,7 @@ class TestHandler : public Handler { public: using Handler::Handler; - void start(const Variant::mapType &args) override { startCount++; } + void start(Variant::mapType &args) override { startCount++; } void end() override { endCount++; } @@ -48,10 +48,9 @@ public: void child(std::shared_ptr<Handler> handler) override { childCount++; } }; -static Handler *createTestHandler(const ParserContext &ctx, std::string name, - State state, State parentState, bool isChild) +static Handler *createTestHandler(const HandlerData &data) { - return new TestHandler(ctx, name, state, parentState, isChild); + return new TestHandler(data); } static const std::multimap<std::string, HandlerDescriptor> TEST_HANDLERS{ |