Use std::unique_ptr for ValueBase object hierarchy

This commit is contained in:
Tatsuhiro Tsujikawa 2013-07-11 21:09:51 +09:00
parent 7a57ecc5f8
commit 7c06b903f3
77 changed files with 1242 additions and 1265 deletions

View file

@ -80,7 +80,7 @@ public:
virtual std::string toString() const CXX11_OVERRIDE
{ return "MockDHTMessage"; }
virtual std::shared_ptr<Dict> getArgument() CXX11_OVERRIDE
virtual std::unique_ptr<Dict> getArgument() CXX11_OVERRIDE
{ return Dict::g(); }
};
@ -115,7 +115,7 @@ public:
virtual std::string toString() const CXX11_OVERRIDE
{ return "MockDHTMessage"; }
virtual std::shared_ptr<Dict> getResponse() CXX11_OVERRIDE
virtual std::unique_ptr<Dict> getResponse() CXX11_OVERRIDE
{ return Dict::g(); }
virtual void accept(DHTMessageCallback* callback) CXX11_OVERRIDE {}