diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-11 13:33:42 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-11 13:33:42 +0000 |
commit | 85bd008c039eb1d93894e94fba9d158a42a71a12 (patch) | |
tree | 2d72d10759f6928e9e4b960175d2de01b5cf7e12 /protocols/Xfire/src/getbuddyinfo.cpp | |
parent | 222802c2986dcaf029fdfb828b7679bdabfa7bb2 (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/getbuddyinfo.cpp')
-rw-r--r-- | protocols/Xfire/src/getbuddyinfo.cpp | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/protocols/Xfire/src/getbuddyinfo.cpp b/protocols/Xfire/src/getbuddyinfo.cpp index 6d21742510..af5f3645b3 100644 --- a/protocols/Xfire/src/getbuddyinfo.cpp +++ b/protocols/Xfire/src/getbuddyinfo.cpp @@ -32,25 +32,27 @@ getestet mit clanbuddy's >270 members */ -namespace xfirelib { - using namespace std; +using namespace std; - int GetBuddyInfo::getPacketContent(char *packet) { - int index = 0; +namespace xfirelib +{ + int GetBuddyInfo::getPacketContent(char *packet) + { + int index = 0; - VariableValue val; - val.setValueFromLong(userid,4); + VariableValue val; + val.setValueFromLong(userid, 4); - packet[index++] = 0x01; - packet[index++] = 0x02; - index += val.writeValue(packet, index); + packet[index++] = 0x01; + packet[index++] = 0x02; + index += val.writeValue(packet, index); - length = index; - return index; - } - - int GetBuddyInfo::getPacketAttributeCount() { - return 1; - } + length = index; + return index; + } + int GetBuddyInfo::getPacketAttributeCount() + { + return 1; + } } |