summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_history_sync.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-06-01 19:25:20 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-06-01 19:25:20 +0000
commitcd60ff3b5bf31a99c2ccafcd404adf8a0452b0a4 (patch)
tree56433c8ca56230de7e1065a13e2fdea065ba2186 /protocols/SkypeWeb/src/skype_history_sync.cpp
parent2bb514f4195c99b52e0ec748c975c0fd30dbbd25 (diff)
SkypeWeb: Minor cleanup.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13962 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_history_sync.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp
index 7933d114d5..51c8609515 100644
--- a/protocols/SkypeWeb/src/skype_history_sync.cpp
+++ b/protocols/SkypeWeb/src/skype_history_sync.cpp
@@ -78,7 +78,6 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response)
if (isEdited && dbevent != NULL)
{
DBEVENTINFO dbei = { sizeof(dbei) };
- CMStringA msg;
dbei.cbBlob = db_event_getBlobSize(dbevent);
mir_ptr<BYTE> blob((PBYTE)mir_alloc(dbei.cbBlob));
@@ -94,7 +93,7 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response)
_tcsftime_l(time, sizeof(time), L"%X %x", localtime(&timestamp), locale);
_free_locale(locale);
- msg.AppendFormat("%s\n%s %s:\n%s", dbMsgText, Translate("Edited at"), _T2A(time), message);
+ CMStringA msg(FORMAT, "%s\n%s %s:\n%s", dbMsgText, Translate("Edited at"), _T2A(time), message);
db_event_delete(hContact, dbevent);
AddMessageToDb(hContact, dbEventTimestamp, flags, clientMsgId.c_str(), msg.GetBuffer(), emoteOffset);
}