From 22e1aa5bb4a159d6d66a321f978917614aa36331 Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 8 Jul 2014 14:29:26 +0200 Subject: mark all local functions as static --- Source/Core/DolphinWX/NetWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/DolphinWX/NetWindow.cpp') diff --git a/Source/Core/DolphinWX/NetWindow.cpp b/Source/Core/DolphinWX/NetWindow.cpp index 4860d0b501..495f6c00e7 100644 --- a/Source/Core/DolphinWX/NetWindow.cpp +++ b/Source/Core/DolphinWX/NetWindow.cpp @@ -59,7 +59,7 @@ static NetPlayClient* netplay_client = nullptr; extern CFrame* main_frame; NetPlayDiag *NetPlayDiag::npd = nullptr; -std::string BuildGameName(const GameListItem& game) +static std::string BuildGameName(const GameListItem& game) { // Lang needs to be consistent auto const lang = 0; @@ -74,7 +74,7 @@ std::string BuildGameName(const GameListItem& game) return name + " (" + game.GetUniqueID() + ")"; } -void FillWithGameNames(wxListBox* game_lbox, const CGameListCtrl& game_list) +static void FillWithGameNames(wxListBox* game_lbox, const CGameListCtrl& game_list) { for (u32 i = 0 ; auto game = game_list.GetISO(i); ++i) game_lbox->Append(StrToWxStr(BuildGameName(*game))); -- cgit v1.2.3 From 81ed17be53e7fed93147dc0d334a6c1d45f4e3c8 Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 8 Jul 2014 16:49:33 +0200 Subject: avoid the extern keyword in .cpp files --- Source/Core/DolphinWX/NetWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DolphinWX/NetWindow.cpp') diff --git a/Source/Core/DolphinWX/NetWindow.cpp b/Source/Core/DolphinWX/NetWindow.cpp index 495f6c00e7..391ce0ff9c 100644 --- a/Source/Core/DolphinWX/NetWindow.cpp +++ b/Source/Core/DolphinWX/NetWindow.cpp @@ -42,6 +42,7 @@ #include "DolphinWX/Frame.h" #include "DolphinWX/GameListCtrl.h" #include "DolphinWX/ISOFile.h" +#include "DolphinWX/Main.h" #include "DolphinWX/NetWindow.h" #include "DolphinWX/WxUtils.h" @@ -56,7 +57,6 @@ END_EVENT_TABLE() static NetPlayServer* netplay_server = nullptr; static NetPlayClient* netplay_client = nullptr; -extern CFrame* main_frame; NetPlayDiag *NetPlayDiag::npd = nullptr; static std::string BuildGameName(const GameListItem& game) -- cgit v1.2.3