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/inviterequestpacket.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/inviterequestpacket.cpp')
-rw-r--r-- | protocols/Xfire/src/inviterequestpacket.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/protocols/Xfire/src/inviterequestpacket.cpp b/protocols/Xfire/src/inviterequestpacket.cpp index dc105d31ff..a6f976f094 100644 --- a/protocols/Xfire/src/inviterequestpacket.cpp +++ b/protocols/Xfire/src/inviterequestpacket.cpp @@ -24,28 +24,28 @@ #include "inviterequestpacket.h" #include "variablevalue.h" -#include <string> -namespace xfirelib { - using namespace std; +using namespace std; - void InviteRequestPacket::parseContent(char *buf, int length, int numberOfAtts) { - VariableValue val; - int index = 0; - index += val.readName(buf,index); - index += 4; // Ignore 04 01 01 00 - index += val.readValue(buf,index,-1,1); - name = string(val.getValue(),val.getValueLength()); - - index += val.readName(buf,index); - index += 4; // Ignore 04 01 01 00 - index += val.readValue(buf,index,-1,1); - nick = string(val.getValue(),val.getValueLength()); - - index += val.readName(buf,index); - index += 4; // Ignore 04 01 01 00 - index += val.readValue(buf,index,-1,1); - msg = string(val.getValue(),val.getValueLength()); - } +namespace xfirelib +{ + void InviteRequestPacket::parseContent(char *buf, int, int) + { + VariableValue val; + int index = 0; + index += val.readName(buf, index); + index += 4; // Ignore 04 01 01 00 + index += val.readValue(buf, index, -1, 1); + name = string(val.getValue(), val.getValueLength()); + index += val.readName(buf, index); + index += 4; // Ignore 04 01 01 00 + index += val.readValue(buf, index, -1, 1); + nick = string(val.getValue(), val.getValueLength()); + + index += val.readName(buf, index); + index += 4; // Ignore 04 01 01 00 + index += val.readValue(buf, index, -1, 1); + msg = string(val.getValue(), val.getValueLength()); + } }; |