summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2017-06-11 16:05:14 +0100
committerGitHub <noreply@github.com>2017-06-11 16:05:14 +0100
commit1bf62cc0846fb295356c7f2a090d690c9ee8c57c (patch)
treec878aa70b36738fd77fa9300ce63b87713b23aff /Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp
parent937d72e59192be43da89e44a0d9f1dbf10ac7a94 (diff)
parent17ef4c8046fd9eccdf074b72ceb981710552a6b1 (diff)
Merge pull request #5596 from leoetlino/return-by-value
StringUtil: Make SplitString return by value
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp
index 6f09214f5b..8b885cad68 100644
--- a/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp
@@ -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")