From a59e0b7478b004f9bcc80e39212de2a81604d10f Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 25 Aug 2015 19:13:17 +0200 Subject: [PATCH] make methods const --- io/inifile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io/inifile.cpp b/io/inifile.cpp index 09574ae..21d9573 100644 --- a/io/inifile.cpp +++ b/io/inifile.cpp @@ -24,14 +24,14 @@ void IniFile::parse(std::istream &inputStream) value.reserve(256); // define actions for state machine // called when key/value pair is complete - auto finishKeyValue = [&scope, &key, &value, &whitespace, this] { + const auto finishKeyValue = [&scope, &key, &value, &whitespace, this] { m_data[scope].insert(make_pair(key, value)); key.clear(); value.clear(); whitespace = 0; }; // called to add current character to current key or value - auto addChar = [&whitespace, &c] (string &to) { + const auto addChar = [&whitespace, &c] (string &to) { if(c == ' ') { ++whitespace; } else {