summaryrefslogtreecommitdiff
path: root/src/option_types.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-03-14 09:56:08 +0000
committerMaxime Coste <mawww@kakoune.org>2017-07-19 08:47:14 +0200
commit5bf401948a99e26b8113d59e3d1da5032d661f08 (patch)
treed8c511b11d3caf367e7aa89357541e530443f340 /src/option_types.hh
parentbbaa98c46d9649cd4c97dd20da93cea8c1e3a37c (diff)
Cleanup some code with C++14 features
Diffstat (limited to 'src/option_types.hh')
-rw-r--r--src/option_types.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/option_types.hh b/src/option_types.hh
index ac1a5270..53b10ab6 100644
--- a/src/option_types.hh
+++ b/src/option_types.hh
@@ -108,9 +108,9 @@ template<typename Key, typename Value, MemoryDomain domain>
String option_to_string(const HashMap<Key, Value, domain>& opt)
{
String res;
- for (auto it = begin(opt); it != end(opt); ++it)
+ for (auto it = opt.begin(); it != opt.end(); ++it)
{
- if (it != begin(opt))
+ if (it != opt.begin())
res += list_separator;
String elem = escape(option_to_string(it->key), '=', '\\') + "=" +
escape(option_to_string(it->value), '=', '\\');