summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/sendacceptinvitationpacket.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/sendacceptinvitationpacket.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/sendacceptinvitationpacket.cpp')
-rw-r--r--protocols/Xfire/src/sendacceptinvitationpacket.cpp33
1 files changed, 16 insertions, 17 deletions
diff --git a/protocols/Xfire/src/sendacceptinvitationpacket.cpp b/protocols/Xfire/src/sendacceptinvitationpacket.cpp
index ece6c0bc3a..fe4010c395 100644
--- a/protocols/Xfire/src/sendacceptinvitationpacket.cpp
+++ b/protocols/Xfire/src/sendacceptinvitationpacket.cpp
@@ -27,21 +27,20 @@
#include "variablevalue.h"
#include "xdebug.h"
-namespace xfirelib {
-
- int SendAcceptInvitationPacket::getPacketContent(char *buf) {
- VariableValue val;
- val.setName( "name" );
- val.setValue( name.c_str() );
- int index = 0;
- index += val.writeName(buf, index);
- buf[index++] = 01;
- buf[index++] = name.length();
- buf[index++] = 00;
- index += val.writeValue(buf, index);
-
- return index;
- }
-
-
+namespace xfirelib
+{
+ int SendAcceptInvitationPacket::getPacketContent(char *buf)
+ {
+ VariableValue val;
+ val.setName("name");
+ val.setValue(name.c_str());
+ int index = 0;
+ index += val.writeName(buf, index);
+ buf[index++] = 01;
+ buf[index++] = name.length();
+ buf[index++] = 00;
+ index += val.writeValue(buf, index);
+
+ return index;
+ }
};