Skip to content

Commit

Permalink
Added empty constructor for JsonSpiritWireMessageCodec
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Ambrosio committed Sep 15, 2012
1 parent 73c2325 commit 0ee242d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class WireMessageCodec {
*/
class JsonSpiritWireMessageCodec : public WireMessageCodec {
public:
JsonSpiritWireMessageCodec();
WireCommand *decode(const std::string &request) const throw(WireMessageCodecException);
const std::string encode(const WireResponse *response) const;
};
Expand Down
2 changes: 2 additions & 0 deletions src/connectors/wire/WireProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ static std::map<std::string, boost::shared_ptr<CommandDecoder> > commandDecoders
("snippet_text", boost::shared_ptr<CommandDecoder> (new SnippetTextDecoder));


JsonSpiritWireMessageCodec::JsonSpiritWireMessageCodec() {};

WireCommand *JsonSpiritWireMessageCodec::decode(const std::string &request) const throw(WireMessageCodecException) {
std::istringstream is(request);
mValue json;
Expand Down

0 comments on commit 0ee242d

Please sign in to comment.