From 17ef4c8046fd9eccdf074b72ceb981710552a6b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 11 Jun 2017 16:33:10 +0200 Subject: StringUtil: Make SplitString return by value Simpler usage. --- Source/Core/InputCommon/ControllerInterface/Pipes/Pipes.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface') 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 tokens; - SplitString(command, ' ', tokens); + const std::vector tokens = SplitString(command, ' '); if (tokens.size() < 2 || tokens.size() > 4) return; if (tokens[0] == "PRESS" || tokens[0] == "RELEASE") -- cgit v1.2.3