From 3af23d2c1dab24cbf3a6f971016ca5092249f63d Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 22 Jul 2015 15:30:26 +0000 Subject: Tlen: vc2015 compilation fix git-svn-id: http://svn.miranda-ng.org/main/trunk@14633 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/tlen_muc.cpp | 2 +- protocols/Tlen/src/tlen_presence.cpp | 2 +- protocols/Tlen/src/tlen_svc.cpp | 12 ++++++------ protocols/Tlen/src/tlen_thread.cpp | 2 +- protocols/Tlen/src/tlen_userinfo.cpp | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'protocols') diff --git a/protocols/Tlen/src/tlen_muc.cpp b/protocols/Tlen/src/tlen_muc.cpp index 1571b0d843..892da79ba6 100644 --- a/protocols/Tlen/src/tlen_muc.cpp +++ b/protocols/Tlen/src/tlen_muc.cpp @@ -221,7 +221,7 @@ INT_PTR TlenProtocol::MUCMenuHandleMUC(WPARAM wParam, LPARAM lParam) if (!isOnline) return 1; - TlenSend(this, "

", TlenSerialNext(this)); + TlenSend(this, "

", TlenSerialNext(this)); return 0; } diff --git a/protocols/Tlen/src/tlen_presence.cpp b/protocols/Tlen/src/tlen_presence.cpp index c68af8606c..b56b72c411 100644 --- a/protocols/Tlen/src/tlen_presence.cpp +++ b/protocols/Tlen/src/tlen_presence.cpp @@ -93,7 +93,7 @@ void TlenProcessPresence(XmlNode *node, TlenProtocol *proto) if (!item->infoRequested) { int iqId = TlenSerialNext(proto); item->infoRequested = TRUE; - TlenSend( proto, "", iqId, from); + TlenSend( proto, "", iqId, from); } if (proto->tlenOptions.enableVersion && !item->versionRequested) { item->versionRequested = TRUE; diff --git a/protocols/Tlen/src/tlen_svc.cpp b/protocols/Tlen/src/tlen_svc.cpp index 84755d7291..e15145cb05 100644 --- a/protocols/Tlen/src/tlen_svc.cpp +++ b/protocols/Tlen/src/tlen_svc.cpp @@ -66,9 +66,9 @@ int TlenRunSearch(TlenProtocol *proto) { iqId = proto->searchID; TlenIqAdd(proto, iqId, IQ_PROC_GETSEARCH, TlenIqResultSearch); if (proto->searchIndex == 0) { - TlenSend(proto, "%s", iqId, proto->searchQuery); + TlenSend(proto, "%s", iqId, proto->searchQuery); } else { - TlenSend(proto, "%s%d", iqId, proto->searchQuery, proto->searchIndex * TLEN_MAX_SEARCH_RESULTS_PER_PAGE); + TlenSend(proto, "%s%d", iqId, proto->searchQuery, proto->searchIndex * TLEN_MAX_SEARCH_RESULTS_PER_PAGE); } proto->searchIndex ++; } @@ -476,14 +476,14 @@ int TlenProtocol::GetInfo(MCONTACT hContact, int infoType) if (hContact == NULL) { iqId = TlenSerialNext(this); TlenIqAdd(this, iqId, IQ_PROC_NONE, TlenIqResultVcard); - TlenSend(this, "", iqId); + TlenSend(this, "", iqId); } else { if (db_get(hContact, m_szModuleName, "jid", &dbv)) return 1; if ((nick=TlenNickFromJID(dbv.pszVal)) != NULL) { if ((pNick=TlenTextEncode(nick)) != NULL) { iqId = TlenSerialNext(this); TlenIqAdd(this, iqId, IQ_PROC_NONE, TlenIqResultVcard); - TlenSend(this, "%s", iqId, pNick); + TlenSend(this, "%s", iqId, pNick); mir_free(pNick); } mir_free(nick); @@ -639,14 +639,14 @@ int TlenProtocol::SendMsg(MCONTACT hContact, int, const char* msgRAW) else if (!mir_strcmp(msgType, "privchat")) TlenSend(this, "%s", dbv.pszVal, msgEnc); else - TlenSend(this, "%s", dbv.pszVal, msgType, id, msgEnc); + TlenSend(this, "%s", dbv.pszVal, msgType, id, msgEnc); forkthread(TlenSendMessageAckThread, 0, new SENDACKTHREADDATA(this, hContact, id)); } else { if ((item=TlenListGetItemPtr(this, LIST_ROSTER, dbv.pszVal)) != NULL) item->idMsgAckPending = id; - TlenSend(this, "%s", dbv.pszVal, msgType, id, msgEnc); + TlenSend(this, "%s", dbv.pszVal, msgType, id, msgEnc); } } mir_free(msgEnc); diff --git a/protocols/Tlen/src/tlen_thread.cpp b/protocols/Tlen/src/tlen_thread.cpp index 4fdf7c6e80..b1de0fe4c7 100644 --- a/protocols/Tlen/src/tlen_thread.cpp +++ b/protocols/Tlen/src/tlen_thread.cpp @@ -407,7 +407,7 @@ static void TlenSendAuth(TlenProtocol *proto) { if (p != NULL) { iqId = TlenSerialNext(proto->threadData->proto); TlenIqAdd(proto, iqId, IQ_PROC_NONE, TlenIqResultAuth); - TlenSend(proto, "%s%sttlen.pl", iqId, p /*info->username*/, str); + TlenSend(proto, "%s%sttlen.pl", iqId, p /*info->username*/, str); mir_free(p); } mir_free(str); diff --git a/protocols/Tlen/src/tlen_userinfo.cpp b/protocols/Tlen/src/tlen_userinfo.cpp index 3d1dc7c4e4..ab995ce0b3 100644 --- a/protocols/Tlen/src/tlen_userinfo.cpp +++ b/protocols/Tlen/src/tlen_userinfo.cpp @@ -301,7 +301,7 @@ static INT_PTR CALLBACK TlenUserInfoDlgProc(HWND hwndDlg, UINT msg, WPARAM wPara if (LOWORD(wParam) == IDC_SAVE && HIWORD(wParam) == BN_CLICKED) { char *str = NULL; int strSize; - TlenStringAppend(&str, &strSize, "", TlenSerialNext(data->proto)); + TlenStringAppend(&str, &strSize, "", TlenSerialNext(data->proto)); FetchField(hwndDlg, IDC_FIRSTNAME, "first", &str, &strSize); FetchField(hwndDlg, IDC_LASTNAME, "last", &str, &strSize); FetchField(hwndDlg, IDC_NICKNAME, "nick", &str, &strSize); -- cgit v1.2.3