summaryrefslogtreecommitdiff
path: root/protocols/ICQCorp/src/transfer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/ICQCorp/src/transfer.cpp')
-rw-r--r--protocols/ICQCorp/src/transfer.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/ICQCorp/src/transfer.cpp b/protocols/ICQCorp/src/transfer.cpp
index f8b42e5b87..a13f961a43 100644
--- a/protocols/ICQCorp/src/transfer.cpp
+++ b/protocols/ICQCorp/src/transfer.cpp
@@ -228,8 +228,8 @@ void ICQTransfer::sendPacket0x02()
Packet packet;
packet << (unsigned char)0x02
<< directory
- << ptrA(mir_utf8encodeW(wcsrchr(fileName, '\\') + 1)).get()
- << ptrA(mir_utf8encodeW(directoryName + mir_wstrlen(path) + 1)).get()
+ << _T2A(wcsrchr(fileName, '\\') + 1)
+ << _T2A(directoryName + mir_wstrlen(path) + 1)
<< fileSize
<< fileDate
<< speed;
@@ -327,8 +327,7 @@ void ICQTransfer::ack(unsigned int result)
ProtoBroadcastAck(protoName, hContact, ACKTYPE_FILE, ACKRESULT_SUCCESS, this, 0);
socket.closeConnection();
- unsigned int i;
- for (i = 0; i < icqTransfers.size(); i++) {
+ for (size_t i = 0; i < icqTransfers.size(); i++) {
if (icqTransfers[i] == this) {
delete icqTransfers[i];
icqTransfers[i] = icqTransfers[icqTransfers.size() - 1];