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/buddyinfo.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/buddyinfo.cpp')
-rw-r--r-- | protocols/Xfire/src/buddyinfo.cpp | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/protocols/Xfire/src/buddyinfo.cpp b/protocols/Xfire/src/buddyinfo.cpp index bcd9d47c81..85e38712b1 100644 --- a/protocols/Xfire/src/buddyinfo.cpp +++ b/protocols/Xfire/src/buddyinfo.cpp @@ -23,42 +23,40 @@ */ #include "stdafx.h" -#include <vector> -#include <string> #include "buddyinfo.h" #include "xfireparse.h" #include "variablevalue.h" #include "xdebug.h" -namespace xfirelib { - using namespace std; +namespace xfirelib +{ + using namespace std; - void BuddyInfoPacket::parseContent(char *buf, int length, int numberOfAtts) { - int index = 0; + void BuddyInfoPacket::parseContent(char *buf, int, int) + { + int index = 0; - VariableValue val; + VariableValue val; - XDEBUG2( "Len: %ld\n", length ); + XDEBUG2("Len: %ld\n", length); - index+=2; //paar bytes überspringen + index += 2; //paar bytes überspringen - index += val.readValue(buf,index,4); - this->userid = val.getValueAsLong(); + index += val.readValue(buf, index, 4); + this->userid = val.getValueAsLong(); - XDEBUG2( "UserId: %ld\n", this->userid); + XDEBUG2("UserId: %ld\n", this->userid); - index+=2; + index += 2; - this->avatarmode = buf[index]; - XDEBUG2( "Avatarmode: %ld\n", this->avatarmode); - index+=6; + this->avatarmode = buf[index]; + XDEBUG2("Avatarmode: %ld\n", this->avatarmode); + index += 6; - index += val.readValue(buf,index,4); - this->avatarid = val.getValueAsLong(); - XDEBUG2( "Avatarid: %ld\n", this->avatarid); - - } - + index += val.readValue(buf, index, 4); + this->avatarid = val.getValueAsLong(); + XDEBUG2("Avatarid: %ld\n", this->avatarid); + } };
\ No newline at end of file |