mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
use std::to_string instead of sstream
This commit is contained in:
parent
6097d30288
commit
a5cc054bd1
1 changed files with 1 additions and 5 deletions
|
@ -2,8 +2,6 @@
|
||||||
// Licensed under GPLv2+
|
// Licensed under GPLv2+
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
#include <sstream>
|
|
||||||
|
|
||||||
#include <Carbon/Carbon.h>
|
#include <Carbon/Carbon.h>
|
||||||
#include <Cocoa/Cocoa.h>
|
#include <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
|
@ -133,9 +131,7 @@ std::string KeyboardAndMouse::Key::GetName() const
|
||||||
if (named_key.code == m_keycode)
|
if (named_key.code == m_keycode)
|
||||||
return named_key.name;
|
return named_key.name;
|
||||||
|
|
||||||
std::stringstream ss;
|
return "Key " + std::to_string(m_keycode);
|
||||||
ss << "Key " << m_keycode;
|
|
||||||
return ss.str();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KeyboardAndMouse::KeyboardAndMouse(void* window)
|
KeyboardAndMouse::KeyboardAndMouse(void* window)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue