From 4f7d1c395bf7fd8826c235c69edf8328e71917a5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 1 Jul 2013 21:59:54 +0900 Subject: Use std::unique_ptr for ProgressUpdate instead of raw pointer --- src/BtNotInterestedMessage.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/BtNotInterestedMessage.cc') diff --git a/src/BtNotInterestedMessage.cc b/src/BtNotInterestedMessage.cc index 911faac4..abbded28 100644 --- a/src/BtNotInterestedMessage.cc +++ b/src/BtNotInterestedMessage.cc @@ -84,9 +84,9 @@ struct ThisProgressUpdate : public ProgressUpdate { }; } // namespace -ProgressUpdate* BtNotInterestedMessage::getProgressUpdate() +std::unique_ptr BtNotInterestedMessage::getProgressUpdate() { - return new ThisProgressUpdate(getPeer()); + return make_unique(getPeer()); } void BtNotInterestedMessage::setPeerStorage(PeerStorage* peerStorage) -- cgit