From 3b17797b4604c7ad6614c62edab5d7f2475f92b6 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sun, 16 Nov 2014 14:50:45 +0100 Subject: [PATCH] Build fixes. --- libweb3jsonrpc/WebThreeStubServer.cpp | 6 +----- libwhisper/Common.h | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/libweb3jsonrpc/WebThreeStubServer.cpp b/libweb3jsonrpc/WebThreeStubServer.cpp index 092faae09..73c938ce2 100644 --- a/libweb3jsonrpc/WebThreeStubServer.cpp +++ b/libweb3jsonrpc/WebThreeStubServer.cpp @@ -240,7 +240,7 @@ static shh::Envelope toSealed(Json::Value const& _json, shh::Message const& _m, static pair toWatch(Json::Value const& _json) { - shh::BuildTopicMask bt(shh::BuildTopicMask::Empty); + shh::BuildTopicMask bt; Public to; if (!_json["to"].empty()) @@ -252,12 +252,8 @@ static pair toWatch(Json::Value const& _json) bt.shift(jsToBytes(_json["topic"].asString())); else if (_json["topic"].isArray()) for (auto i: _json["topic"]) - { if (i.isString()) bt.shift(jsToBytes(i.asString())); - else - bt.shift(); - } } return make_pair(bt.toTopicMask(), to); } diff --git a/libwhisper/Common.h b/libwhisper/Common.h index a704a2896..5ce7d3b1c 100644 --- a/libwhisper/Common.h +++ b/libwhisper/Common.h @@ -114,7 +114,7 @@ private: class BuildTopicMask: BuildTopic { public: - template BuildTopicMask() {} + BuildTopicMask() {} template BuildTopicMask(T const& _t) { shift(_t); } template BuildTopicMask& shift(T const& _r) { BuildTopic::shift(_r); return *this; }