summaryrefslogtreecommitdiff
path: root/plugins/FavContacts
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/FavContacts')
-rw-r--r--plugins/FavContacts/src/favlist.h6
-rw-r--r--plugins/FavContacts/src/stdafx.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/FavContacts/src/favlist.h b/plugins/FavContacts/src/favlist.h
index c9ed5bc2c3..394c7fb747 100644
--- a/plugins/FavContacts/src/favlist.h
+++ b/plugins/FavContacts/src/favlist.h
@@ -20,7 +20,7 @@ public:
name = mir_wstrdup(pcli->pfnGetContactDisplayName(hContact, 0));
if (g_Options.bUseGroups) {
- if ((group = db_get_wsa(hContact, "CList", "Group")) == NULL)
+ if ((group = db_get_wsa(hContact, "CList", "Group")) == nullptr)
group = mir_wstrdup(TranslateT("<no group>"));
}
else group = mir_wstrdup(TranslateT("Favorite Contacts"));
@@ -72,7 +72,7 @@ private:
int addContact(MCONTACT hContact, bool bManual)
{
DBCachedContact *cc = db->m_cache->GetCachedContact(hContact);
- if (cc == NULL)
+ if (cc == nullptr)
return 0;
if (db_mc_isEnabled()) {
@@ -107,7 +107,7 @@ public:
void build()
{
- prevGroup = NULL;
+ prevGroup = nullptr;
nGroups = 1;
diff --git a/plugins/FavContacts/src/stdafx.h b/plugins/FavContacts/src/stdafx.h
index c0a65e1908..b66f0242b4 100644
--- a/plugins/FavContacts/src/stdafx.h
+++ b/plugins/FavContacts/src/stdafx.h
@@ -84,8 +84,8 @@ extern CContactCache *g_contactCache;
#include "favlist.h"
-BOOL MenuDrawItem(LPDRAWITEMSTRUCT lpdis, Options *options = NULL);
-BOOL MenuMeasureItem(LPMEASUREITEMSTRUCT lpmis, Options *options = NULL);
+BOOL MenuDrawItem(LPDRAWITEMSTRUCT lpdis, Options *options = nullptr);
+BOOL MenuMeasureItem(LPMEASUREITEMSTRUCT lpmis, Options *options = nullptr);
int ProcessOptInitialise(WPARAM, LPARAM);
int ProcessModulesLoaded(WPARAM, LPARAM);