summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorDaniel Bradshaw <daniel+commits@the-cell.co.uk>2010-01-26 21:02:20 +0000
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-01-28 10:19:12 +0100
commitca2950fb8bffa9924aa49ab1d4729dbc2a391752 (patch)
treed95f92db525f415a4107ed8704b75368b70da967 /src/gui
parent8d299d86c1209be6084e0d78c0454c946874e00f (diff)
downloadmana-ca2950fb8bffa9924aa49ab1d4729dbc2a391752.tar.gz
mana-ca2950fb8bffa9924aa49ab1d4729dbc2a391752.tar.bz2
mana-ca2950fb8bffa9924aa49ab1d4729dbc2a391752.tar.xz
mana-ca2950fb8bffa9924aa49ab1d4729dbc2a391752.zip
Added virtual destructors, some implicit casts, and a couple of type changes.
Many warnings removed. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/statuswindow.cpp2
-rw-r--r--src/gui/widgets/slider.cpp3
-rw-r--r--src/gui/widgets/tablemodel.h2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp
index 5d464c6b..f8613e80 100644
--- a/src/gui/statuswindow.cpp
+++ b/src/gui/statuswindow.cpp
@@ -376,7 +376,7 @@ void StatusWindow::updateHPBar(ProgressBar *bar, bool showMax)
if (g1 > 255) g1 = 255;
if (b1 > 255) b1 = 255;
- bar->setColor(r1, g1, b1);
+ bar->setColor((int)r1,(int)g1, (int)b1);
}
bar->setProgress((float) player_node->getHp() / (float) player_node->getMaxHp());
diff --git a/src/gui/widgets/slider.cpp b/src/gui/widgets/slider.cpp
index 693ac0f7..e78055dd 100644
--- a/src/gui/widgets/slider.cpp
+++ b/src/gui/widgets/slider.cpp
@@ -209,4 +209,5 @@ void Slider::mouseEntered(gcn::MouseEvent& event)
void Slider::mouseExited(gcn::MouseEvent& event)
{
mHasMouse = false;
-} \ No newline at end of file
+}
+
diff --git a/src/gui/widgets/tablemodel.h b/src/gui/widgets/tablemodel.h
index 129d2089..c2943cf2 100644
--- a/src/gui/widgets/tablemodel.h
+++ b/src/gui/widgets/tablemodel.h
@@ -40,6 +40,8 @@ public:
* \param completed whether we are signalling the end of the update
*/
virtual void modelUpdated(bool completed) = 0;
+
+ virtual ~TableModelListener() {}
};
/**