mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
This commit is contained in:
parent
126a4bde61
commit
07d270c87e
709 changed files with 6305 additions and 6878 deletions
|
@ -10,10 +10,10 @@ class MockExtensionMessageFactory:public ExtensionMessageFactory {
|
|||
public:
|
||||
virtual ~MockExtensionMessageFactory() {}
|
||||
|
||||
virtual SharedHandle<ExtensionMessage> createMessage(const unsigned char* data,
|
||||
virtual std::shared_ptr<ExtensionMessage> createMessage(const unsigned char* data,
|
||||
size_t length)
|
||||
{
|
||||
return SharedHandle<ExtensionMessage>
|
||||
return std::shared_ptr<ExtensionMessage>
|
||||
(new MockExtensionMessage("a2_mock", *data, data+1, length-1));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue