summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_account.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-26 20:54:36 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-26 20:54:36 +0000
commit3361d33bd5782edb07270518705a41f4cd57697b (patch)
treed2b06dbe5de48c64218f18102e29f1c354283ce0 /protocols/Skype/src/skype_account.cpp
parent949435479e650de8bc0c0e192dc879a3e8afacca (diff)
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4543 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_account.cpp')
-rw-r--r--protocols/Skype/src/skype_account.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Skype/src/skype_account.cpp b/protocols/Skype/src/skype_account.cpp
index 44b01e9216..7091dc35ab 100644
--- a/protocols/Skype/src/skype_account.cpp
+++ b/protocols/Skype/src/skype_account.cpp
@@ -139,16 +139,16 @@ void CSkypeProto::LogOut()
void CSkypeProto::SetAccountSettings()
{
- int port = this->GetSettingWord("Port", rand() % 10000 + 10000);
+ int port = ::db_get_w(NULL, this->m_szModuleName, "Port", rand() % 10000 + 10000);
g_skype->SetInt(SETUPKEY_PORT, port);
- g_skype->SetInt(SETUPKEY_DISABLE_PORT80, (int)!this->GetSettingByte("UseAlternativePorts", 1));
+ g_skype->SetInt(SETUPKEY_DISABLE_PORT80, (int)!::db_get_b(NULL, this->m_szModuleName, "UseAlternativePorts", 1));
// Create default group for new contacts
DBVARIANT dbv = {0};
- if (!db_get_ts(NULL, m_szModuleName, SKYPE_SETTINGS_DEF_GROUP, &dbv) && lstrlen(dbv.ptszVal) > 0)
+ if (!::db_get_ts(NULL, m_szModuleName, SKYPE_SETTINGS_DEF_GROUP, &dbv) && lstrlen(dbv.ptszVal) > 0)
{
- CallService(MS_CLIST_GROUPCREATE, 0, (LPARAM)dbv.ptszVal);
- db_free(&dbv);
+ ::CallService(MS_CLIST_GROUPCREATE, 0, (LPARAM)dbv.ptszVal);
+ ::db_free(&dbv);
}
}