Fix warning

This commit is contained in:
Benau
2016-02-22 07:43:29 +08:00
parent 8f1daabbe1
commit abdd32c070
2 changed files with 4 additions and 4 deletions

View File

@@ -131,11 +131,11 @@ void GhostReplaySelection::eventCallback(GUIEngine::Widget* widget,
}
else if (name == m_replay_list_widget->m_properties[GUIEngine::PROP_ID])
{
unsigned int selected_index = m_replay_list_widget->getSelectionID();
int selected_index = m_replay_list_widget->getSelectionID();
// This can happen e.g. when the list is empty and the user
// clicks somewhere.
if (selected_index >= ReplayPlay::get()->getNumReplayFile() ||
selected_index < 0 )
if (selected_index >= (signed)ReplayPlay::get()->getNumReplayFile() ||
selected_index < 0)
{
return;
}

View File

@@ -64,7 +64,7 @@ public:
/** \brief implement callback from parent class GUIEngine::Screen */
virtual void beforeAddingWidget() OVERRIDE;
virtual void onColumnClicked(int columnId);
virtual void onColumnClicked(int columnId) OVERRIDE;
virtual void init() OVERRIDE;