Fix some things that C++ doesn't like so we don't lose the possibility to use the...
[satune.git] / src / Encoders / elementencoding.c
index 095f99ded848dc8dc3d4316b951a0eef971de42e..a4e206762ef11b7bf8669a67e176feb7c451f71a 100644 (file)
@@ -1,19 +1,19 @@
 #include "elementencoding.h"
 
 ElementEncoding * allocElementEncoding(ElementEncodingType type, Element *element) {
-       ElementEncoding * this=(ElementEncoding *)ourmalloc(sizeof(ElementEncoding));
-       this->element=element;
-       this->type=type;
-       this->variables=NULL;
-       this->encodingArray=NULL;
-       this->numVars=0;
-       return this;
+       ElementEncoding * This=(ElementEncoding *)ourmalloc(sizeof(ElementEncoding));
+       This->element=element;
+       This->type=type;
+       This->variables=NULL;
+       This->encodingArray=NULL;
+       This->numVars=0;
+       return This;
 }
 
-void deleteElementEncoding(ElementEncoding *this) {
-       if (this->variables!=NULL)
-               ourfree(this->variables);
-       if (this->encodingArray!=NULL)
-               ourfree(this->encodingArray);
-       ourfree(this);
+void deleteElementEncoding(ElementEncoding *This) {
+       if (This->variables!=NULL)
+               ourfree(This->variables);
+       if (This->encodingArray!=NULL)
+               ourfree(This->encodingArray);
+       ourfree(This);
 }