From e6c4594bfd63d7480fa4c010e5336586c61c240f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 26 Sep 2019 18:23:54 +0300 Subject: C++'17 compatibility mode enabled --- plugins/Import/src/patterns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Import/src/patterns.cpp') 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 pNew(new CImportPattern()); + std::unique_ptr 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 db(new CDbxPattern()); + std::unique_ptr db(new CDbxPattern()); if (db->Open(profile)) return nullptr; -- cgit v1.2.3