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/Import/src/patterns.cpp | |
parent | 1d8b5028056bbfe0dd3616162da30378f043c0c0 (diff) |
C++'17 compatibility mode enabled
Diffstat (limited to 'plugins/Import/src/patterns.cpp')
-rw-r--r-- | plugins/Import/src/patterns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Import/src/patterns.cpp b/plugins/Import/src/patterns.cpp index 9f28b50645..8c67fc1d0c 100644 --- a/plugins/Import/src/patterns.cpp +++ b/plugins/Import/src/patterns.cpp @@ -53,7 +53,7 @@ void CMPlugin::LoadPattern(const wchar_t *pwszFileName) if (!GetPrivateProfileStringW(L"General", L"Name", L"", buf, _countof(buf), pwszFileName)) return; - std::auto_ptr<CImportPattern> pNew(new CImportPattern()); + std::unique_ptr<CImportPattern> pNew(new CImportPattern()); pNew->wszName = buf; pNew->iType = GetPrivateProfileIntW(L"General", L"Type", 1, pwszFileName); @@ -707,7 +707,7 @@ static int pattern_grokHeader(const wchar_t *profile) static MDatabaseCommon* pattern_load(const wchar_t *profile, BOOL) { - std::auto_ptr<CDbxPattern> db(new CDbxPattern()); + std::unique_ptr<CDbxPattern> db(new CDbxPattern()); if (db->Open(profile)) return nullptr; |