diff options
author | Torbjörn Andersson | 2010-01-22 19:05:02 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-01-22 19:05:02 +0000 |
commit | 48184679086094cc5d6067de8c31a6823fc71732 (patch) | |
tree | dd366cf38861efbf803aa194e455577efcea8871 /backends/platform/wince/CEgui | |
parent | 8f41cc0631914a6a743a1efa5275d8fa399b4f12 (diff) | |
download | scummvm-rg350-48184679086094cc5d6067de8c31a6823fc71732.tar.gz scummvm-rg350-48184679086094cc5d6067de8c31a6823fc71732.tar.bz2 scummvm-rg350-48184679086094cc5d6067de8c31a6823fc71732.zip |
Silenced some more cppcheck warnings. Some of these may seem silly, but the way
I figure it the changes are harmless at worst, and making them will make it
easier to find real errors in the (still quite long) list of warnings.
svn-id: r47443
Diffstat (limited to 'backends/platform/wince/CEgui')
-rw-r--r-- | backends/platform/wince/CEgui/GUIElement.cpp | 3 | ||||
-rw-r--r-- | backends/platform/wince/CEgui/ItemSwitch.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/backends/platform/wince/CEgui/GUIElement.cpp b/backends/platform/wince/CEgui/GUIElement.cpp index a37182e69d..23e7843de1 100644 --- a/backends/platform/wince/CEgui/GUIElement.cpp +++ b/backends/platform/wince/CEgui/GUIElement.cpp @@ -120,8 +120,7 @@ namespace CEGUI { } GUIElement::~GUIElement() { - if (_background) - delete _background; + delete _background; } } diff --git a/backends/platform/wince/CEgui/ItemSwitch.cpp b/backends/platform/wince/CEgui/ItemSwitch.cpp index 445b3bb69b..8e0121f7c4 100644 --- a/backends/platform/wince/CEgui/ItemSwitch.cpp +++ b/backends/platform/wince/CEgui/ItemSwitch.cpp @@ -57,8 +57,7 @@ namespace CEGUI { } ItemSwitch::~ItemSwitch() { - if (_backgroundFalse) - delete _backgroundFalse; + delete _backgroundFalse; } bool ItemSwitch::action(int x, int y, bool pushed) { |