Fix some GCC warnings

Former-commit-id: b3292fcfd4d029793cb70f97ab608aeb7d0579ef
This commit is contained in:
Lynix
2016-05-25 13:52:10 +02:00
parent c0bfaa12b0
commit 3e78dd40ad
19 changed files with 113 additions and 54 deletions

View File

@@ -145,6 +145,7 @@ namespace Ndk
{
case Nz::Keyboard::Down:
case Nz::Keyboard::Up:
{
if (event.key.code == Nz::Keyboard::Up)
m_historyPosition = std::min<std::size_t>(m_commandHistory.size(), m_historyPosition + 1);
else
@@ -159,6 +160,10 @@ namespace Ndk
m_inputDrawer.SetText(s_inputPrefix + text);
m_inputTextSprite->Update(m_inputDrawer);
break;
}
default:
break;
}
break;
}