summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/clientversionpacket.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-11 13:33:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-11 13:33:42 +0000
commit85bd008c039eb1d93894e94fba9d158a42a71a12 (patch)
tree2d72d10759f6928e9e4b960175d2de01b5cf7e12 /protocols/Xfire/src/clientversionpacket.cpp
parent222802c2986dcaf029fdfb828b7679bdabfa7bb2 (diff)
massive code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@14910 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/clientversionpacket.cpp')
-rw-r--r--protocols/Xfire/src/clientversionpacket.cpp44
1 files changed, 23 insertions, 21 deletions
diff --git a/protocols/Xfire/src/clientversionpacket.cpp b/protocols/Xfire/src/clientversionpacket.cpp
index 3150eac746..84f2c8788f 100644
--- a/protocols/Xfire/src/clientversionpacket.cpp
+++ b/protocols/Xfire/src/clientversionpacket.cpp
@@ -25,28 +25,30 @@
#include "xfireutils.h"
#include <string.h>
-namespace xfirelib {
+namespace xfirelib
+{
+ int ClientVersionPacket::getPacketContent(char *packet)
+ {
+ int index = 0;
- int ClientVersionPacket::getPacketContent(char *packet) {
- int index = 0;
-
- index = XFireUtils::addAttributName(packet,index, "version");/*add xfire version*/
- packet[index] = 0x02;
- packet[index+1] = (char) version;//protocol version
- packet[index+2] = 0x00;
- packet[index+3] = 0x00;
- packet[index+4] = 0x00;
- index += 5;
- length = index;
- return index;
- }
+ index = XFireUtils::addAttributName(packet, index, "version");/*add xfire version*/
+ packet[index] = 0x02;
+ packet[index + 1] = (char)version;//protocol version
+ packet[index + 2] = 0x00;
+ packet[index + 3] = 0x00;
+ packet[index + 4] = 0x00;
+ index += 5;
+ length = index;
+ return index;
+ }
- int ClientVersionPacket::getPacketAttributeCount() {
- return 1;
- }
-
- void ClientVersionPacket::setProtocolVersion(int newVersion){
- version = newVersion;
- }
+ int ClientVersionPacket::getPacketAttributeCount()
+ {
+ return 1;
+ }
+ void ClientVersionPacket::setProtocolVersion(int newVersion)
+ {
+ version = newVersion;
+ }
}