diff options
| author | George Hazan <ghazan@miranda.im> | 2020-03-15 16:02:06 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2020-03-15 16:02:06 +0300 |
| commit | ec60bf5b0f03bfb4c310957e5eec9c17193c6c15 (patch) | |
| tree | 8c57ad15e2435fedb24d12dfcb28dccbaf05c970 /protocols | |
| parent | 8b5bf4464597453a75453f1a0bac151372722250 (diff) | |
db_get_sm / getStringA / getWStringA / getUStringA/ getMStringA / getMStringW - missing szValue parameter added
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/JabberG/src/jabber_events.cpp | 2 | ||||
| -rw-r--r-- | protocols/JabberG/src/jabber_groupchat.cpp | 2 | ||||
| -rwxr-xr-x | protocols/JabberG/src/jabber_thread.cpp | 2 | ||||
| -rw-r--r-- | protocols/SkypeWeb/src/skype_chatrooms.cpp | 2 | ||||
| -rw-r--r-- | protocols/Tox/src/tox_proto.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_events.cpp b/protocols/JabberG/src/jabber_events.cpp index e6592e1705..23c2d1e931 100644 --- a/protocols/JabberG/src/jabber_events.cpp +++ b/protocols/JabberG/src/jabber_events.cpp @@ -144,7 +144,7 @@ void __cdecl CJabberProto::OnAddContactForever(MCONTACT hContact) AddContactToRoster(jid, nick, T2Utf(ptrW(Clist_GetGroup(hContact))));
XmlNode xPresence("presence"); xPresence << XATTR("to", jid) << XATTR("type", "subscribe");
- ptrA myNick(getUStringA(0, "Nick"));
+ ptrA myNick(getUStringA("Nick"));
if (myNick != nullptr)
xPresence << XCHILD("nick", myNick) << XATTR("xmlns", JABBER_FEAT_NICK);
m_ThreadInfo->send(xPresence);
diff --git a/protocols/JabberG/src/jabber_groupchat.cpp b/protocols/JabberG/src/jabber_groupchat.cpp index a66b530a67..3af128e858 100644 --- a/protocols/JabberG/src/jabber_groupchat.cpp +++ b/protocols/JabberG/src/jabber_groupchat.cpp @@ -130,7 +130,7 @@ struct JabberGcRecentInfo m_nick = ppro->getUStringA(setting);
mir_snprintf(setting, "password_rcMuc_%d", iRecent);
- m_password = ppro->getUStringA(0, setting);
+ m_password = ppro->getUStringA(setting);
return m_room || m_server || m_nick || m_password;
}
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 36c2018ea3..abc46ca6a2 100755 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -314,7 +314,7 @@ LBL_FatalError: }
}
else {
- ptrA tszPassw(getUStringA(0, "Password"));
+ ptrA tszPassw(getUStringA("Password"));
if (tszPassw == nullptr) {
JLoginFailed(LOGINERR_BADUSERID);
debugLogA("Thread ended, password is not configured");
diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp index cdab9bc6cd..c11f15dc80 100644 --- a/protocols/SkypeWeb/src/skype_chatrooms.cpp +++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp @@ -411,7 +411,7 @@ char* CSkypeProto::GetChatContactNick(const char *chat_id, const char *id, const // Check if we have this contact in database
if (IsMe(id)) {
// Return my nick
- if (char *tname = getUStringA(NULL, "Nick"))
+ if (char *tname = getUStringA("Nick"))
return tname;
}
else {
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 728168ff62..62d7e3194a 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -79,7 +79,7 @@ INT_PTR CToxProto::GetCaps(int type, MCONTACT) MCONTACT CToxProto::AddToList(int flags, PROTOSEARCHRESULT *psr)
{
- ptrA myAddress(getStringA(NULL, TOX_SETTINGS_ID));
+ ptrA myAddress(getStringA(TOX_SETTINGS_ID));
if (strnicmp(psr->id.a, myAddress, TOX_PUBLIC_KEY_SIZE) == 0) {
ShowNotification(TranslateT("You cannot add yourself to your contact list"), 0);
return NULL;
|
