summaryrefslogtreecommitdiff
path: root/src/BtInterestedMessage.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-30 16:55:15 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-30 22:55:43 +0900
commit098f1571be6f9d30d394eb83d35cc67f8e9ebcb0 (patch)
tree1fd7ae9d1173704f39291c5f438c3388a3ab3d65 /src/BtInterestedMessage.cc
parentabcb0745ed3c60f17942ce65fb63159a157854ea (diff)
Wrap BtMessage objects by std::unique_ptr instead of std::shared_ptr
Diffstat (limited to 'src/BtInterestedMessage.cc')
-rw-r--r--src/BtInterestedMessage.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BtInterestedMessage.cc b/src/BtInterestedMessage.cc
index e4e92e63..0ba100f3 100644
--- a/src/BtInterestedMessage.cc
+++ b/src/BtInterestedMessage.cc
@@ -48,7 +48,7 @@ BtInterestedMessage::BtInterestedMessage()
BtInterestedMessage::~BtInterestedMessage() {}
-BtInterestedMessage* BtInterestedMessage::create
+std::unique_ptr<BtInterestedMessage> BtInterestedMessage::create
(const unsigned char* data, size_t dataLength)
{
return ZeroBtMessage::create<BtInterestedMessage>(data, dataLength);