summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/xfireutils.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/xfireutils.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/xfireutils.cpp')
-rw-r--r--protocols/Xfire/src/xfireutils.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/protocols/Xfire/src/xfireutils.cpp b/protocols/Xfire/src/xfireutils.cpp
index 93793c72e7..73b78961a0 100644
--- a/protocols/Xfire/src/xfireutils.cpp
+++ b/protocols/Xfire/src/xfireutils.cpp
@@ -23,22 +23,21 @@
#include "stdafx.h"
#include "xdebug.h"
-#include <string.h>
-#include <iostream>
#include "xfireutils.h"
-
-namespace xfirelib {
-
using namespace std;
- XFireUtils::XFireUtils() {
- }
+namespace xfirelib
+{
+ XFireUtils::XFireUtils()
+ {
+ }
- int XFireUtils::addAttributName(char *packet,int packet_length, char *att){
- XDEBUG3( "Adding %d chars at position %d\n",mir_strlen(att),packet_length);
- packet[packet_length] = (char)mir_strlen(att);//set att length
- memcpy(packet+packet_length+1,att,mir_strlen(att)); //set attname
- return packet_length+1+mir_strlen(att);
- }
+ int XFireUtils::addAttributName(char *packet, int packet_length, char *att)
+ {
+ XDEBUG3("Adding %d chars at position %d\n", mir_strlen(att), packet_length);
+ packet[packet_length] = (char)mir_strlen(att);//set att length
+ memcpy(packet + packet_length + 1, att, mir_strlen(att)); //set attname
+ return packet_length + 1 + mir_strlen(att);
+ }
};