summaryrefslogtreecommitdiff
path: root/src/mir_app/src/db_intf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_app/src/db_intf.cpp')
-rw-r--r--src/mir_app/src/db_intf.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mir_app/src/db_intf.cpp b/src/mir_app/src/db_intf.cpp
index 45d5015888..cf35491ddf 100644
--- a/src/mir_app/src/db_intf.cpp
+++ b/src/mir_app/src/db_intf.cpp
@@ -31,7 +31,7 @@ LIST<DATABASELINK> arDbPlugins(5);
MIR_APP_DLL(void) RegisterDatabasePlugin(DATABASELINK *pDescr)
{
- if (pDescr != NULL)
+ if (pDescr != nullptr)
arDbPlugins.insert(pDescr);
}
@@ -43,20 +43,20 @@ MIR_APP_DLL(DATABASELINK*) FindDatabasePlugin(const wchar_t *ptszFileName)
return arDbPlugins[i];
}
- return NULL;
+ return nullptr;
}
MIR_APP_DLL(void) InitDbInstance(MIDatabase *pDatabase)
{
- if (pDatabase != NULL)
+ if (pDatabase != nullptr)
pDatabase->m_cache = new MDatabaseCache(pDatabase->GetContactSize());
}
MIR_APP_DLL(void) DestroyDbInstance(MIDatabase *pDatabase)
{
- if (pDatabase != NULL) {
+ if (pDatabase != nullptr) {
MDatabaseCache *pCache = (MDatabaseCache*)pDatabase->m_cache;
- pDatabase->m_cache = NULL;
+ pDatabase->m_cache = nullptr;
delete pCache;
}
}