summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/variablevalue.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-02 11:42:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-02 11:42:34 +0000
commit517284b80db96b58ea68d7ba974345dc5a2236bb (patch)
tree4f179d2c825378aefced9008bd06857de1486db6 /protocols/Xfire/src/variablevalue.cpp
parentc0d3c16aab5f5f52ede1f49ffeeafce98e3d073d (diff)
fix for extra icons in XFire
git-svn-id: http://svn.miranda-ng.org/main/trunk@7453 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/variablevalue.cpp')
-rw-r--r--protocols/Xfire/src/variablevalue.cpp10
1 files changed, 5 insertions, 5 deletions
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;