summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/options.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-14 15:43:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-14 15:43:25 +0300
commit28b81bbed5d8db354349fd787c3db4123e55d423 (patch)
tree9861c246bdb7696c25adbbcd9f210dda430f846e /protocols/IRCG/src/options.cpp
parent4b933c7b73a4151872dea3119685cdebe40532c7 (diff)
code cleaning
Diffstat (limited to 'protocols/IRCG/src/options.cpp')
-rw-r--r--protocols/IRCG/src/options.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/IRCG/src/options.cpp b/protocols/IRCG/src/options.cpp
index 0e10ae9ead..14b3c4ae8c 100644
--- a/protocols/IRCG/src/options.cpp
+++ b/protocols/IRCG/src/options.cpp
@@ -1167,7 +1167,7 @@ bool COtherPrefsDlg::OnApply()
if (!pPerf->mText.IsEmpty())
m_proto->setWString(pPerf->mSetting.c_str(), pPerf->mText.c_str());
else
- db_unset(NULL, m_proto->m_szModuleName, pPerf->mSetting.c_str());
+ db_unset(0, m_proto->m_szModuleName, pPerf->mSetting.c_str());
}
}
m_proto->WriteSettings(OtherSettings, _countof(OtherSettings));
@@ -1383,7 +1383,7 @@ void CIrcProto::RewriteIgnoreSettings(void)
int i = 0;
for (;;) {
mir_snprintf(settingName, "IGNORE:%d", i++);
- if (db_unset(NULL, m_szModuleName, settingName))
+ if (db_unset(0, m_szModuleName, settingName))
break;
}
@@ -1688,11 +1688,11 @@ void CIrcProto::InitPrefs(void)
int x = getDword("SizeOfListBottom", -1);
if (x != -1) {
- db_unset(NULL, m_szModuleName, "SizeOfListBottom");
+ db_unset(0, m_szModuleName, "SizeOfListBottom");
setDword("channelList_height", x);
}
if ((x = getDword("SizeOfListWidth", -1)) != -1) {
- db_unset(NULL, m_szModuleName, "SizeOfListWidth");
+ db_unset(0, m_szModuleName, "SizeOfListWidth");
setDword("channelList_width", x);
}