diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-06-11 16:33:10 +0200 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-06-11 16:48:20 +0200 |
| commit | 17ef4c8046fd9eccdf074b72ceb981710552a6b1 (patch) | |
| tree | c878aa70b36738fd77fa9300ce63b87713b23aff /Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp | |
| parent | 937d72e59192be43da89e44a0d9f1dbf10ac7a94 (diff) | |
StringUtil: Make SplitString return by value
Simpler usage.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp | 3 |
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") |
