Require -std=c++11 and use std::shared_ptr instead of SharedHandle

This commit is contained in:
Tatsuhiro Tsujikawa 2013-06-22 01:10:38 +09:00
parent 126a4bde61
commit 07d270c87e
709 changed files with 6305 additions and 6878 deletions

View file

@ -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));
}
};