pcsx2: auto_ptr is deprecated in favor of unique_ptr

This commit is contained in:
Gregory Hainaut 2015-10-19 13:04:47 +02:00
parent 395b4c25f3
commit c42f46eba4
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ int LoadCheatsFromZip(wxString gameCRC, const wxString& cheatsArchiveFilename) {
int before = cheatnumber; int before = cheatnumber;
std::auto_ptr<wxZipEntry> entry; std::unique_ptr<wxZipEntry> entry;
wxFFileInputStream in(cheatsArchiveFilename); wxFFileInputStream in(cheatsArchiveFilename);
wxZipInputStream zip(in); wxZipInputStream zip(in);
while (entry.reset(zip.GetNextEntry()), entry.get() != NULL) while (entry.reset(zip.GetNextEntry()), entry.get() != NULL)