aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/ListWidget.cpp2
-rw-r--r--gui/ThemeModern.cpp8
-rw-r--r--gui/console.cpp2
-rw-r--r--gui/theme.cpp8
4 files changed, 10 insertions, 10 deletions
diff --git a/gui/ListWidget.cpp b/gui/ListWidget.cpp
index c43a0f64d7..80898d06c8 100644
--- a/gui/ListWidget.cpp
+++ b/gui/ListWidget.cpp
@@ -495,7 +495,7 @@ void ListWidget::reflowLayout() {
_entriesPerPage = (_h - _topPadding - _bottomPadding) / kLineHeight;
- delete [] _textWidth;
+ delete[] _textWidth;
_textWidth = new int[_entriesPerPage];
for (int i = 0; i < _entriesPerPage; i++)
diff --git a/gui/ThemeModern.cpp b/gui/ThemeModern.cpp
index 69595eb219..177171b40c 100644
--- a/gui/ThemeModern.cpp
+++ b/gui/ThemeModern.cpp
@@ -114,8 +114,8 @@ _forceRedraw(false), _lastUsedBitMask(0), _fonts(), _cursor(0), _imageHandles(),
ThemeModern::~ThemeModern() {
deleteFonts();
deinit();
- delete [] _images;
- delete [] _cursor;
+ delete[] _images;
+ delete[] _cursor;
_images = 0;
for (int i = 0; i < kImageHandlesMax; ++i) {
ImageMan.unregisterSurface(_imageHandles[i]);
@@ -1470,7 +1470,7 @@ void ThemeModern::createCursor() {
_system->colorToRGB(_colors[kColorTransparency], r, g, b);
uint16 transparency = RGBToColor<ColorMasks<565> >(r, g, b);
- delete [] _cursor;
+ delete[] _cursor;
_cursor = new byte[_cursorWidth * _cursorHeight];
assert(_cursor);
@@ -1502,7 +1502,7 @@ void ThemeModern::createCursor() {
}
_useCursor = true;
- delete [] table;
+ delete[] table;
}
#pragma mark -
diff --git a/gui/console.cpp b/gui/console.cpp
index b57ccbdaa6..728724d76f 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -295,7 +295,7 @@ void ConsoleDialog::handleKeyDown(Common::KeyState state) {
keepRunning = (*_callbackProc)(this, str, _callbackRefCon);
// Get rid of the string buffer
- delete [] str;
+ delete[] str;
}
print(PROMPT);
diff --git a/gui/theme.cpp b/gui/theme.cpp
index a044769bfd..c8501c4f91 100644
--- a/gui/theme.cpp
+++ b/gui/theme.cpp
@@ -82,7 +82,7 @@ const Graphics::Font *Theme::loadFont(const char *filename) {
font = Graphics::NewFont::loadFromCache(stream);
- delete [] buffer;
+ delete[] buffer;
buffer = 0;
}
unzClose(zipFile);
@@ -112,7 +112,7 @@ const Graphics::Font *Theme::loadFont(const char *filename) {
font = Graphics::NewFont::loadFont(stream);
- delete [] buffer;
+ delete[] buffer;
buffer = 0;
}
unzClose(zipFile);
@@ -175,7 +175,7 @@ bool Theme::loadConfigFile(const Common::String &stylefile) {
unzClose(zipFile);
return false;
}
- delete [] buffer;
+ delete[] buffer;
buffer = 0;
} else {
unzClose(zipFile);
@@ -225,7 +225,7 @@ bool Theme::themeConfigUseable(const Common::String &stylefile, const Common::St
unzClose(zipFile);
return false;
}
- delete [] buffer;
+ delete[] buffer;
buffer = 0;
}
} else {