summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-09-26 18:23:54 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-09-26 18:23:54 +0300
commite6c4594bfd63d7480fa4c010e5336586c61c240f (patch)
treec7c07acfe0770cfb2095d9693a7b017033e3593f /plugins/Db3x_mmap
parent1d8b5028056bbfe0dd3616162da30378f043c0c0 (diff)
C++'17 compatibility mode enabled
Diffstat (limited to 'plugins/Db3x_mmap')
-rw-r--r--plugins/Db3x_mmap/src/init.cpp4
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;