aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/config.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-02-21 16:32:34 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-02-21 16:32:34 +0100
commit1ac2664472d0135503e54f0d924a802023855003 (patch)
tree13f690db4152c971e0fe27ef34bebb796dad0b84 /src/libutil/config.cc
parentfe9afb65bb35737a144acd612170b2e284298a2f (diff)
Remove std::vector alias
Diffstat (limited to 'src/libutil/config.cc')
-rw-r--r--src/libutil/config.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/config.cc b/src/libutil/config.cc
index 92ab265d3..8e05f1765 100644
--- a/src/libutil/config.cc
+++ b/src/libutil/config.cc
@@ -90,7 +90,7 @@ void AbstractConfig::applyConfig(const std::string & contents, const std::string
if (hash != string::npos)
line = string(line, 0, hash);
- vector<string> tokens = tokenizeString<vector<string> >(line);
+ auto tokens = tokenizeString<std::vector<string>>(line);
if (tokens.empty()) continue;
if (tokens.size() < 2)
@@ -122,7 +122,7 @@ void AbstractConfig::applyConfig(const std::string & contents, const std::string
string name = tokens[0];
- vector<string>::iterator i = tokens.begin();
+ auto i = tokens.begin();
advance(i, 2);
set(name, concatStringsSep(" ", Strings(i, tokens.end()))); // FIXME: slow