From d563a5f640d49509fcc2fd237419f98a5d3f349e Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 28 Jul 2008 04:15:55 +0000 Subject: [PATCH] Make GetValueFromMap static. Also hush bogus warning about possible uninitialized use of iPage. --- stepmania/src/ScreenDebugOverlay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ScreenDebugOverlay.cpp b/stepmania/src/ScreenDebugOverlay.cpp index 953fd0fd73..ddb720c9fd 100644 --- a/stepmania/src/ScreenDebugOverlay.cpp +++ b/stepmania/src/ScreenDebugOverlay.cpp @@ -353,7 +353,7 @@ void ScreenDebugOverlay::UpdateText() } template -bool GetValueFromMap( const map &m, const U &key, V &val ) +static bool GetValueFromMap( const map &m, const U &key, V &val ) { typename map::const_iterator it = m.find(key); if( it == m.end() ) @@ -382,7 +382,7 @@ bool ScreenDebugOverlay::OverlayInput( const InputEventPlus &input ) g_bIsDisplayed = false; } - int iPage; + int iPage = 0; if( g_bIsDisplayed && GetValueFromMap(g_Mappings.pageButton, input.DeviceI, iPage) ) { if( input.type != IET_FIRST_PRESS )