mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
StringUtil: Make SplitString return by value
Simpler usage.
This commit is contained in:
parent
937d72e591
commit
17ef4c8046
11 changed files with 19 additions and 34 deletions
|
@ -136,8 +136,7 @@ void PipeDevice::SetAxis(const std::string& entry, double value)
|
|||
|
||||
void PipeDevice::ParseCommand(const std::string& command)
|
||||
{
|
||||
std::vector<std::string> tokens;
|
||||
SplitString(command, ' ', tokens);
|
||||
const std::vector<std::string> tokens = SplitString(command, ' ');
|
||||
if (tokens.size() < 2 || tokens.size() > 4)
|
||||
return;
|
||||
if (tokens[0] == "PRESS" || tokens[0] == "RELEASE")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue