Skip to content

Commit

Permalink
unique_ptr instead of auto_ptr
Browse files Browse the repository at this point in the history
Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Dec 18, 2024
1 parent cac38b4 commit 5c02915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/torrent/torrent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ encoding_list() {

Download
download_add(Object* object) {
std::auto_ptr<DownloadWrapper> download(new DownloadWrapper);
std::unique_ptr<DownloadWrapper> download(new DownloadWrapper);

DownloadConstructor ctor;
ctor.set_download(download.get());
Expand Down

0 comments on commit 5c02915

Please sign in to comment.