From 6ed269d16bcfa9567be9bbee861298ae2c4d4da4 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Mon, 2 Jun 2014 18:28:16 +0800 Subject: [PATCH] Attempt to solve Travis CI build --- UI/GameSettingsScreen.cpp | 2 ++ UI/GameSettingsScreen.h | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 412d80d9b9..c121dee857 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -709,6 +709,7 @@ void ProAdhocServerScreen::CreateViews() { I18NCategory *s = GetI18NCategory("System"); I18NCategory *d = GetI18NCategory("Dialog"); + tempProAdhocServer = g_Config.proAdhocServer; root_ = new AnchorLayout(new LayoutParams(FILL_PARENT, FILL_PARENT)); LinearLayout *leftColumn = new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, FILL_PARENT)); @@ -834,6 +835,7 @@ void MacAddressScreen::CreateViews() { I18NCategory *s = GetI18NCategory("System"); I18NCategory *d = GetI18NCategory("Dialog"); + tempMacAddress = g_Config.localMacAddress; root_ = new AnchorLayout(new LayoutParams(FILL_PARENT, FILL_PARENT)); LinearLayout *leftColumn = new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, FILL_PARENT)); diff --git a/UI/GameSettingsScreen.h b/UI/GameSettingsScreen.h index 60debb70fd..93166889e6 100644 --- a/UI/GameSettingsScreen.h +++ b/UI/GameSettingsScreen.h @@ -19,7 +19,6 @@ #include "ui/ui_screen.h" #include "UI/MiscScreens.h" -#include "Core/Config.h" // Per-game settings screen - enables you to configure graphic options, control options, etc // per game. @@ -112,7 +111,7 @@ protected: virtual void CreateViews(); private: - std::string tempProAdhocServer = g_Config.proAdhocServer; + std::string tempProAdhocServer; UI::TextView *addrView_; UI::EventReturn OnBack(UI::EventParams &e); UI::EventReturn On0Click(UI::EventParams &e); @@ -140,7 +139,7 @@ protected: virtual void CreateViews(); private: - std::string tempMacAddress = g_Config.localMacAddress; + std::string tempMacAddress; UI::TextView *addrView_; UI::EventReturn OnBack(UI::EventParams &e); UI::EventReturn OnAClick(UI::EventParams &e);