aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2008-09-05 11:32:23 +0000
committerMax Horn2008-09-05 11:32:23 +0000
commit689341894228292f792b00b36299398ffdd8c841 (patch)
treed0d4fefc80ef642b5cdce60b4f618476b9fbe2cb /gui
parentdcc72fe29e9b77c1f6dfad4612d5b32b64b610dd (diff)
downloadscummvm-rg350-689341894228292f792b00b36299398ffdd8c841.tar.gz
scummvm-rg350-689341894228292f792b00b36299398ffdd8c841.tar.bz2
scummvm-rg350-689341894228292f792b00b36299398ffdd8c841.zip
Fixing some compiler warnings
svn-id: r34341
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeEngine.cpp2
-rw-r--r--gui/ThemeEngine.h1
-rw-r--r--gui/ThemeLayout.cpp2
-rw-r--r--gui/ThemeLayout.h2
4 files changed, 3 insertions, 4 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index 006a8768a6..8da4d3d808 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -939,8 +939,6 @@ void ThemeEngine::debugWidgetPosition(const char *name, const Common::Rect &r) {
* Screen/overlay management
*********************************************************/
void ThemeEngine::updateScreen() {
- ThemeItem *item = 0;
-
if (!_bufferQueue.empty()) {
_vectorRenderer->setSurface(_backBuffer);
diff --git a/gui/ThemeEngine.h b/gui/ThemeEngine.h
index 9f7fe35d82..2d99076fc3 100644
--- a/gui/ThemeEngine.h
+++ b/gui/ThemeEngine.h
@@ -88,6 +88,7 @@ class ThemeItem {
public:
ThemeItem(ThemeEngine *engine, const Common::Rect &area) :
_engine(engine), _area(area) {}
+ virtual ~ThemeItem() {}
virtual void drawSelf(bool doDraw, bool doRestore) = 0;
diff --git a/gui/ThemeLayout.cpp b/gui/ThemeLayout.cpp
index a70fb6cdc6..247c1c0d5e 100644
--- a/gui/ThemeLayout.cpp
+++ b/gui/ThemeLayout.cpp
@@ -224,4 +224,4 @@ void ThemeLayoutHorizontal::reflowLayout() {
}
-} \ No newline at end of file
+}
diff --git a/gui/ThemeLayout.h b/gui/ThemeLayout.h
index 293804d822..87078d086e 100644
--- a/gui/ThemeLayout.h
+++ b/gui/ThemeLayout.h
@@ -236,4 +236,4 @@ public:
}
-#endif \ No newline at end of file
+#endif