From 85bd008c039eb1d93894e94fba9d158a42a71a12 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 Aug 2015 13:33:42 +0000 Subject: massive code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14910 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/src/sendstatusmessagepacket.cpp | 29 +++++++++++-------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'protocols/Xfire/src/sendstatusmessagepacket.cpp') diff --git a/protocols/Xfire/src/sendstatusmessagepacket.cpp b/protocols/Xfire/src/sendstatusmessagepacket.cpp index 6495515119..88284ab4de 100644 --- a/protocols/Xfire/src/sendstatusmessagepacket.cpp +++ b/protocols/Xfire/src/sendstatusmessagepacket.cpp @@ -24,20 +24,17 @@ #include "sendstatusmessagepacket.h" -#include - -namespace xfirelib { - - int SendStatusMessagePacket::getPacketContent(char *buf) { - int index = 0; - buf[index++] = 0x2e; - buf[index++] = 0x01; - buf[index++] = awaymsg.length(); - buf[index++] = 0x00; - memcpy(buf+index,awaymsg.c_str(),awaymsg.length()); - index+=awaymsg.length(); - return index; - } - - +namespace xfirelib +{ + int SendStatusMessagePacket::getPacketContent(char *buf) + { + int index = 0; + buf[index++] = 0x2e; + buf[index++] = 0x01; + buf[index++] = awaymsg.length(); + buf[index++] = 0x00; + memcpy(buf + index, awaymsg.c_str(), awaymsg.length()); + index += awaymsg.length(); + return index; + } }; -- cgit v1.2.3