From 1630b3fd62c57e01468a03a9d4dde397f903ef37 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 Jan 2013 18:51:29 +0000 Subject: Lint. Fix test suite compilation. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4937 a436a847-0d15-0410-975c-d299462d15a1 --- tests/ingen_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp index ade41aa7..8608b447 100644 --- a/tests/ingen_test.cpp +++ b/tests/ingen_test.cpp @@ -66,7 +66,7 @@ class TestClient : public AtomSink { class TestClient : public Interface { public: - TestClient(Log& log) : _log(log) {} + explicit TestClient(Log& log) : _log(log) {} ~TestClient() {} Raul::URI uri() const { return Raul::URI("ingen:testClient"); } @@ -77,7 +77,7 @@ public: void put(const Raul::URI& uri, const Resource::Properties& properties, - Resource::Graph ctx = Resource::DEFAULT) {} + Resource::Graph ctx = Resource::Graph::DEFAULT) {} void delta(const Raul::URI& uri, const Resource::Properties& remove, @@ -106,7 +106,7 @@ public: void get(const Raul::URI& uri) {} void response(int32_t id, Status status, const std::string& subject) { - if (status) { + if (status != Status::SUCCESS) { _log.error(Raul::fmt("error on message %1%: %2% (%3%)\n") % id % ingen_status_string(status) % subject); exit(EXIT_FAILURE); -- cgit v1.2.1