diff options
author | George Hazan <ghazan@miranda.im> | 2019-09-26 18:23:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-09-26 18:23:54 +0300 |
commit | e6c4594bfd63d7480fa4c010e5336586c61c240f (patch) | |
tree | c7c07acfe0770cfb2095d9693a7b017033e3593f /plugins/Db3x_mmap | |
parent | 1d8b5028056bbfe0dd3616162da30378f043c0c0 (diff) |
C++'17 compatibility mode enabled
Diffstat (limited to 'plugins/Db3x_mmap')
-rw-r--r-- | plugins/Db3x_mmap/src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Db3x_mmap/src/init.cpp b/plugins/Db3x_mmap/src/init.cpp index 6af3359934..e7b7b7901e 100644 --- a/plugins/Db3x_mmap/src/init.cpp +++ b/plugins/Db3x_mmap/src/init.cpp @@ -61,7 +61,7 @@ static int makeDatabase(const wchar_t*) // returns 0 if the given profile has a valid header
static int grokHeader(const wchar_t *profile)
{
- std::auto_ptr<CDb3Mmap> db(new CDb3Mmap(profile, DBMODE_SHARED | DBMODE_READONLY));
+ std::unique_ptr<CDb3Mmap> db(new CDb3Mmap(profile, DBMODE_SHARED | DBMODE_READONLY));
if (db->Load(true) != ERROR_SUCCESS)
return EGROKPRF_CANTREAD;
@@ -116,7 +116,7 @@ LBL_Error: return pLink->Load(profile, false);
}
- std::auto_ptr<CDb3Mmap> db(new CDb3Mmap(profile, DBMODE_READONLY));
+ std::unique_ptr<CDb3Mmap> db(new CDb3Mmap(profile, DBMODE_READONLY));
if (db->Load(false) != ERROR_SUCCESS)
return nullptr;
|