diff options
Diffstat (limited to 'plugins/Clist_modern/src/modern_contact.cpp')
| -rw-r--r-- | plugins/Clist_modern/src/modern_contact.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Clist_modern/src/modern_contact.cpp b/plugins/Clist_modern/src/modern_contact.cpp index 696975a2e6..b18b5e2651 100644 --- a/plugins/Clist_modern/src/modern_contact.cpp +++ b/plugins/Clist_modern/src/modern_contact.cpp @@ -76,7 +76,7 @@ DWORD CompareContacts2_getLMTime(MCONTACT hContact) int GetProtoIndex(char * szName)
{
if (szName) {
- PROTOACCOUNT **accs = NULL;
+ PROTOACCOUNT **accs = nullptr;
int accCount = 0;
Proto_EnumAccounts(&accCount, &accs);
@@ -129,7 +129,7 @@ int cliCompareContacts(const ClcContact *contact1, const ClcContact *contact2) break;
case SORTBY_PROTO:
- if (contact1->proto == NULL || contact2->proto == NULL)
+ if (contact1->proto == nullptr || contact2->proto == nullptr)
continue;
r = GetProtoIndex(contact1->proto) - GetProtoIndex(contact2->proto);
break;
@@ -163,14 +163,14 @@ INT_PTR SetUseGroups(WPARAM wParam, LPARAM) if (!newVal == (int)wParam) return 0;
newVal = wParam;
}
- db_set_b(NULL, "CList", "UseGroups", (BYTE)newVal);
+ db_set_b(0, "CList", "UseGroups", (BYTE)newVal);
SendMessage(pcli->hwndContactTree, CLM_SETUSEGROUPS, newVal, 0);
return 0;
}
INT_PTR ToggleSounds(WPARAM, LPARAM)
{
- db_set_b(NULL, "Skin", "UseSound",
- (BYTE)!db_get_b(NULL, "Skin", "UseSound", SETTING_ENABLESOUNDS_DEFAULT));
+ db_set_b(0, "Skin", "UseSound",
+ (BYTE)!db_get_b(0, "Skin", "UseSound", SETTING_ENABLESOUNDS_DEFAULT));
return 0;
}
|
