summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface
diff options
context:
space:
mode:
authorMichael Maltese <michael.joseph.maltese@gmail.com>2016-08-09 17:45:41 -0700
committerMichael Maltese <michael.joseph.maltese@gmail.com>2016-08-09 17:45:41 -0700
commita5cc054bd1a111c00991664e6f7ac42aac092d5b (patch)
treed90fbac2f0d5b1d9aa80d4cbe93dd0c265c2d6f7 /Source/Core/InputCommon/ControllerInterface
parent6097d30288429637b4c49613c6a1535403c73c69 (diff)
use std::to_string instead of sstream
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm b/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm
index 0a00337a00..dea495feb9 100644
--- a/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm
+++ b/Source/Core/InputCommon/ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm
@@ -2,8 +2,6 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
-#include <sstream>
-
#include <Carbon/Carbon.h>
#include <Cocoa/Cocoa.h>
@@ -133,9 +131,7 @@ std::string KeyboardAndMouse::Key::GetName() const
if (named_key.code == m_keycode)
return named_key.name;
- std::stringstream ss;
- ss << "Key " << m_keycode;
- return ss.str();
+ return "Key " + std::to_string(m_keycode);
}
KeyboardAndMouse::KeyboardAndMouse(void* window)