summaryrefslogtreecommitdiff
path: root/src/CommonAPI/Utils.cpp
diff options
context:
space:
mode:
authorDirk Huss <dirk_huss@mentor.com>2015-11-25 14:38:28 +0100
committerDirk Huss <dirk_huss@mentor.com>2015-11-25 14:38:28 +0100
commitb6f81b22fcf8d9cf8ee9248408b7d2a72fbff1d9 (patch)
tree8b0b1438ccaa9450ca4b21221eb9cd74f14b10f5 /src/CommonAPI/Utils.cpp
parent3d2fb21d0e93b6b595610285e910ac80c099a174 (diff)
downloadgenivi-common-api-runtime-b6f81b22fcf8d9cf8ee9248408b7d2a72fbff1d9.tar.gz
CommonAPI 3.1.4
Diffstat (limited to 'src/CommonAPI/Utils.cpp')
-rw-r--r--src/CommonAPI/Utils.cpp18
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()