From 517284b80db96b58ea68d7ba974345dc5a2236bb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 2 Jan 2014 11:42:34 +0000 Subject: fix for extra icons in XFire git-svn-id: http://svn.miranda-ng.org/main/trunk@7453 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/src/variablevalue.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Xfire/src/variablevalue.cpp') diff --git a/protocols/Xfire/src/variablevalue.cpp b/protocols/Xfire/src/variablevalue.cpp index 584f64412c..6e61aab07d 100644 --- a/protocols/Xfire/src/variablevalue.cpp +++ b/protocols/Xfire/src/variablevalue.cpp @@ -36,7 +36,7 @@ using namespace std; value = 0; } VariableValue::~VariableValue() { - if(value) + if (value) delete[] value; } @@ -49,7 +49,7 @@ using namespace std; } void VariableValue::setValue( char * value) { - if(this->value) delete[] value; + if (this->value) delete[] value; this->value = value; } void VariableValue::setValue( std::string value ) { @@ -111,12 +111,12 @@ using namespace std; int VariableValue::readValue(char *packet, int index, int length,int ignoreZeroAfterLength) { int read = 0; valueLength = length; - if(valueLength < 0) { + if (valueLength < 0) { valueLength = (unsigned char)packet[index+read];read++; - if(ignoreZeroAfterLength) read++; + if (ignoreZeroAfterLength) read++; } - if(value) delete[] value; + if (value) delete[] value; value = new char[valueLength]; memcpy(value,packet+index+read,valueLength); read+=valueLength; -- cgit v1.2.3