Skip to content

Commit

Permalink
Minor improvement in pism::split()
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed Jun 24, 2021
1 parent 8099c60 commit 692f78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/pism_utilities.cc
Expand Up @@ -93,7 +93,7 @@ std::vector<std::string> split(const std::string &input, char separator) {

while (getline(input_list, token, separator)) {
if (not token.empty()) {
result.push_back(token);
result.emplace_back(token);
}
}
return result;
Expand Down

0 comments on commit 692f78b

Please sign in to comment.