diff options
author | Dirk Huss <dirk_huss@mentor.com> | 2015-11-25 14:38:28 +0100 |
---|---|---|
committer | Dirk Huss <dirk_huss@mentor.com> | 2015-11-25 14:38:28 +0100 |
commit | b6f81b22fcf8d9cf8ee9248408b7d2a72fbff1d9 (patch) | |
tree | 8b0b1438ccaa9450ca4b21221eb9cd74f14b10f5 /src/CommonAPI/Utils.cpp | |
parent | 3d2fb21d0e93b6b595610285e910ac80c099a174 (diff) | |
download | genivi-common-api-runtime-b6f81b22fcf8d9cf8ee9248408b7d2a72fbff1d9.tar.gz |
CommonAPI 3.1.4
Diffstat (limited to 'src/CommonAPI/Utils.cpp')
-rw-r--r-- | src/CommonAPI/Utils.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/CommonAPI/Utils.cpp b/src/CommonAPI/Utils.cpp index 2540a86..31d9986 100644 --- a/src/CommonAPI/Utils.cpp +++ b/src/CommonAPI/Utils.cpp @@ -27,17 +27,17 @@ std::vector<std::string> split(const std::string& s, char delim) { void trim(std::string& toTrim) { toTrim.erase( - toTrim.begin(), - std::find_if( - toTrim.begin(), - toTrim.end(), - std::not1(std::ptr_fun(isspace)) - ) - ); + toTrim.begin(), + std::find_if( + toTrim.begin(), + toTrim.end(), + std::not1(std::ptr_fun(isspace)) + ) + ); toTrim.erase( - std::find_if( - toTrim.rbegin(), + std::find_if( + toTrim.rbegin(), toTrim.rend(), std::not1(std::ptr_fun(isspace))).base(), toTrim.end() |