From 2de459cb2e29da0db4aac7c33ec959f46d1b533c Mon Sep 17 00:00:00 2001 From: Daniel Buckmaster Date: Fri, 4 Apr 2014 13:16:47 +1100 Subject: [PATCH] Remove use of 'auto' keyword. --- Engine/source/platformWin32/winInput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/platformWin32/winInput.cpp b/Engine/source/platformWin32/winInput.cpp index c5f53e7e5..6d5f87248 100644 --- a/Engine/source/platformWin32/winInput.cpp +++ b/Engine/source/platformWin32/winInput.cpp @@ -496,10 +496,10 @@ InputManager* Input::getManager() //------------------------------------------------------------------------------ void Input::attemptSwitchToKeyboardLayout( U32 layout ) { - const auto lang = MAKELANGID( layout, SUBLANG_DEFAULT ); + const LANGID lang = MAKELANGID( layout, SUBLANG_DEFAULT ); std::wstringstream ss; ss << std::hex << lang; - const auto hexLang = ss.str().c_str(); + const wchar_t* hexLang = ss.str().c_str(); ActivateKeyboardLayout( LoadKeyboardLayout( hexLang, KLF_ACTIVATE | KLF_REPLACELANG ), KLF_REORDER );