aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-07 15:09:10 +0000
committerJohannes Schickel2008-05-07 15:09:10 +0000
commit311e9165ed3b9442049e9e5e6b25c31d024f04ac (patch)
treea72a266baf6b872300c877f5ed55e8f5cb8ac1dd /common
parent2d707af33825097e3fd0c001101d9a2691e9ff6f (diff)
downloadscummvm-rg350-311e9165ed3b9442049e9e5e6b25c31d024f04ac.tar.gz
scummvm-rg350-311e9165ed3b9442049e9e5e6b25c31d024f04ac.tar.bz2
scummvm-rg350-311e9165ed3b9442049e9e5e6b25c31d024f04ac.zip
Proper delete[] formatting (this time all occurences should've been changed...)
svn-id: r31929
Diffstat (limited to 'common')
-rw-r--r--common/array.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/array.h b/common/array.h
index 24a07b49bf..854ce5b91d 100644
--- a/common/array.h
+++ b/common/array.h
@@ -99,7 +99,7 @@ public:
if (this == &array)
return *this;
- delete [] _data;
+ delete[] _data;
_size = array._size;
_capacity = _size + 32;
_data = new T[_capacity];
@@ -113,7 +113,7 @@ public:
}
void clear() {
- delete [] _data;
+ delete[] _data;
_data = 0;
_size = 0;
_capacity = 0;
@@ -151,7 +151,7 @@ public:
if (old_data) {
// Copy old data
copy(old_data, old_data + _size, _data);
- delete [] old_data;
+ delete[] old_data;
}
}
@@ -166,7 +166,7 @@ public:
// Copy old data
int cnt = (_size < newSize ? _size : newSize);
copy(old_data, old_data + cnt, _data);
- delete [] old_data;
+ delete[] old_data;
}
_size = newSize;
}