Minor corrections (a couple of warnings, unused headers...)

This commit is contained in:
Marc Coll Carrillo 2014-09-23 22:23:24 +02:00
parent 6b42f1b7b7
commit 9c56d66c2d
4 changed files with 6 additions and 6 deletions

View File

@ -24,8 +24,7 @@
#include <algorithm>
#include <set>
#include <utility>
#include <sstream>
GrandPrixManager *grand_prix_manager = NULL;

View File

@ -261,6 +261,10 @@ void EditGPScreen::loadList(const int selected)
m_list->setSelectionID(selected);
setSelected(selected);
}
else
{
enableButtons();
}
}
// -----------------------------------------------------------------------------

View File

@ -175,7 +175,7 @@ void GPInfoScreen::init()
// been added or deleted since the last time this screen was shown.
m_group_spinner->clearLabels();
m_group_spinner->addLabel("all");
int index_standard;
int index_standard=0;
const std::vector<std::string>& groups = track_manager->getAllTrackGroups();
for (unsigned int i = 0; i < groups.size(); i++)
{

View File

@ -67,9 +67,6 @@ void TracksScreen::eventCallback(Widget* widget, const std::string& name,
if (selection == "random_track")
{
RibbonWidget* tabs = getWidget<RibbonWidget>("trackgroups");
assert(tabs);
if (m_random_track_list.empty()) return;
std::string track = m_random_track_list.front();