WINTERMUTE: More formatting fixes.

This commit is contained in:
Einar Johan Trøan Sømåen 2013-01-24 20:17:17 +01:00
parent 5d4d65d6d9
commit c239b868da
2 changed files with 6 additions and 6 deletions

View File

@ -481,10 +481,10 @@ bool SXMemBuffer::scSetProperty(const char *name, ScValue *value) {
_length = max(value->getInt(0), 0);
char propName[20];
if (_length < OrigLength) {
for(int i=_length; i<OrigLength; i++) {
sprintf(PropName, "%d", i);
_values->DeleteProp(PropName);
if (_length < origLength) {
for(int i=_length; i < origLength; i++) {
sprintf(propName, "%d", i);
_values->DeleteProp(propName);
}
}
return STATUS_OK;

View File

@ -70,13 +70,13 @@ namespace Wintermute {
\
/*SystemClass Register##class_name(class_name::_className, class_name::PersistBuild, class_name::PersistLoad, persistent_class);*/\
\
void* className::operator new (size_t size) {\
void* className::operator new(size_t size) {\
void* ret = ::operator new(size);\
SystemClassRegistry::getInstance()->registerInstance(#className, ret);\
return ret;\
}\
\
void className::operator delete (void *p) {\
void className::operator delete(void *p) {\
SystemClassRegistry::getInstance()->unregisterInstance(#className, p);\
::operator delete(p);\
}\