diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-01 21:59:54 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-01 21:59:54 +0900 |
| commit | 4f7d1c395bf7fd8826c235c69edf8328e71917a5 (patch) | |
| tree | c946ac592396a2a2a621a7347dec299c925944e0 /src/BtNotInterestedMessage.cc | |
| parent | 529b9fdceb7b5a277a983badd29dca3cc69259c5 (diff) | |
Use std::unique_ptr for ProgressUpdate instead of raw pointer
Diffstat (limited to 'src/BtNotInterestedMessage.cc')
| -rw-r--r-- | src/BtNotInterestedMessage.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<ProgressUpdate> BtNotInterestedMessage::getProgressUpdate() { - return new ThisProgressUpdate(getPeer()); + return make_unique<ThisProgressUpdate>(getPeer()); } void BtNotInterestedMessage::setPeerStorage(PeerStorage* peerStorage) |
