From 89067e66f9c8c60f9bc045970fdcb088457f4903 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Fri, 15 Jul 2022 19:53:10 +0200 Subject: InputCommon: Get rid of static strings. --- .../InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp') diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp index 0d3ba01449..3fe850715c 100644 --- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp +++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp @@ -275,7 +275,7 @@ std::string KeyboardMouse::Button::GetName() const std::string KeyboardMouse::Axis::GetName() const { - static char tmpstr[] = "Axis .."; + char tmpstr[] = "Axis .."; tmpstr[5] = (char)('X' + m_index); tmpstr[6] = (m_range < 0 ? '-' : '+'); return tmpstr; @@ -283,7 +283,7 @@ std::string KeyboardMouse::Axis::GetName() const std::string KeyboardMouse::Cursor::GetName() const { - static char tmpstr[] = "Cursor .."; + char tmpstr[] = "Cursor .."; tmpstr[7] = (char)('X' + m_index); tmpstr[8] = (m_positive ? '+' : '-'); return tmpstr; -- cgit v1.2.3