From b1c970684cb5fa45ac68d9d83cdddf0ff21a5ec4 Mon Sep 17 00:00:00 2001 From: auria Date: Sun, 18 Jul 2010 15:49:52 +0000 Subject: [PATCH] Fixed warnings git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5694 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/guiengine/widget.cpp | 6 ++++-- src/states_screens/race_result_gui.cpp | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/guiengine/widget.cpp b/src/guiengine/widget.cpp index 422f2991c..b3e370730 100644 --- a/src/guiengine/widget.cpp +++ b/src/guiengine/widget.cpp @@ -185,8 +185,10 @@ int Widget::getNewNoFocusID() bool Widget::isFocusableId(const int id) { - if (id >= unfocusableIdsBase) return false; - else return true; + if (id < 0) return false; + + if ((unsigned int)id >= unfocusableIdsBase) return false; + else return true; } // ----------------------------------------------------------------------------- diff --git a/src/states_screens/race_result_gui.cpp b/src/states_screens/race_result_gui.cpp index 87699f1a9..7e0a14986 100644 --- a/src/states_screens/race_result_gui.cpp +++ b/src/states_screens/race_result_gui.cpp @@ -21,7 +21,7 @@ #include "guiengine/engine.hpp" #include "modes/world.hpp" -#include "states_screens/dialogs/race_over_dialog.hpp" +#include "states_screens/dialogs/race_over_dialog.hpp" #include "utils/string_utils.hpp" /** Constructor, initialises internal data structures. @@ -198,4 +198,4 @@ void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y, UserConfigParams::m_width, y+m_distance_between_rows); m_font->draw(m_entry[n], pos, color); -} // displayOneEntry \ No newline at end of file +} // displayOneEntry