From 92fec1aa22df4c4f1213d33663637c00b753f451 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 Aug 2017 15:23:04 +0300 Subject: code cleaning --- plugins/Db3x_mmap/src/init.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Db3x_mmap/src/init.cpp') diff --git a/plugins/Db3x_mmap/src/init.cpp b/plugins/Db3x_mmap/src/init.cpp index 3e7ce1b49a..316ebe4d8a 100644 --- a/plugins/Db3x_mmap/src/init.cpp +++ b/plugins/Db3x_mmap/src/init.cpp @@ -40,7 +40,7 @@ static PLUGININFOEX pluginInfo = { 0xf7a6b27c, 0x9d9c, 0x4a42, { 0xbe, 0x86, 0xa4, 0x48, 0xae, 0x10, 0x91, 0x61 } } }; -HINSTANCE g_hInst = NULL; +HINSTANCE g_hInst = nullptr; LIST g_Dbs(1, HandleKeySortT); @@ -74,7 +74,7 @@ static MIDatabase* LoadDatabase(const wchar_t *profile, BOOL bReadOnly) std::auto_ptr db(new CDb3Mmap(profile, (bReadOnly) ? DBMODE_READONLY : 0)); if (db->Load(false) != ERROR_SUCCESS) - return NULL; + return nullptr; g_Dbs.insert(db.get()); return db.release(); @@ -92,11 +92,11 @@ MIDatabaseChecker* CheckDb(const wchar_t *profile, int *error) std::auto_ptr db(new CDb3Mmap(profile, DBMODE_READONLY)); if (db->Load(true) != ERROR_SUCCESS) { *error = ERROR_ACCESS_DENIED; - return NULL; + return nullptr; } if (db->PrepareCheck(error)) - return NULL; + return nullptr; return db.release(); } -- cgit v1.2.3