summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-22 21:36:30 +0200
committerLioncash <mathew1800@gmail.com>2018-07-22 21:36:32 +0200
commit26a157cd31676f419420078e7d99df90d9fbc910 (patch)
tree50a66cdeb25823c1f4b7bcf496bb8e92f08bd2e2 /src
parentstring_util: Remove unnecessary std::string instance in TabsToSpaces() (diff)
downloadyuzu-26a157cd31676f419420078e7d99df90d9fbc910.tar
yuzu-26a157cd31676f419420078e7d99df90d9fbc910.tar.gz
yuzu-26a157cd31676f419420078e7d99df90d9fbc910.tar.bz2
yuzu-26a157cd31676f419420078e7d99df90d9fbc910.tar.lz
yuzu-26a157cd31676f419420078e7d99df90d9fbc910.tar.xz
yuzu-26a157cd31676f419420078e7d99df90d9fbc910.tar.zst
yuzu-26a157cd31676f419420078e7d99df90d9fbc910.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/string_util.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index 2099eebb8..6737655a5 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -162,8 +162,9 @@ void SplitString(const std::string& str, const char delim, std::vector<std::stri
std::istringstream iss(str);
output.resize(1);
- while (std::getline(iss, *output.rbegin(), delim))
- output.push_back("");
+ while (std::getline(iss, *output.rbegin(), delim)) {
+ output.emplace_back();
+ }
output.pop_back();
}