summaryrefslogtreecommitdiff
path: root/examples/all_features/reporters_and_listeners.cpp
diff options
context:
space:
mode:
authoronqtam <vik.kirilov@gmail.com>2019-03-18 18:03:05 +0200
committeronqtam <vik.kirilov@gmail.com>2019-03-18 18:03:05 +0200
commitd34754604fea60fd6dcb15cd6b4ea496076ee334 (patch)
tree380c720763d1dd865d80d80ee5b838a51bad2f16 /examples/all_features/reporters_and_listeners.cpp
parenta5eeba4fab10dbc300a9818f2c240a735db2e891 (diff)
queries now also go through the reporter interface!
Diffstat (limited to 'examples/all_features/reporters_and_listeners.cpp')
-rw-r--r--examples/all_features/reporters_and_listeners.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/all_features/reporters_and_listeners.cpp b/examples/all_features/reporters_and_listeners.cpp
index a167208..0b86cbc 100644
--- a/examples/all_features/reporters_and_listeners.cpp
+++ b/examples/all_features/reporters_and_listeners.cpp
@@ -27,8 +27,11 @@ struct MyXmlReporter : public IReporter
// constructor has to accept the ContextOptions by ref as a single argument
MyXmlReporter(const ContextOptions& in)
- : stdout_stream(*in.stdout_stream)
- , opt(in) {}
+ : stdout_stream(*in.cout)
+ , opt(in)
+ , tc(nullptr) {}
+
+ void report_query(const QueryData& /*in*/) override {}
void test_run_start() override {}