mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
Use std::unique_ptr for ValueBase object hierarchy
This commit is contained in:
parent
7a57ecc5f8
commit
7c06b903f3
77 changed files with 1242 additions and 1265 deletions
|
@ -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 {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue