diff --git a/src/ripple/core/impl/Config.cpp b/src/ripple/core/impl/Config.cpp index 40387f2ed..9f2c73642 100644 --- a/src/ripple/core/impl/Config.cpp +++ b/src/ripple/core/impl/Config.cpp @@ -86,9 +86,8 @@ parseIniFile (std::string const& strInput, const bool bTrim) else if (strValue[0] == '[' && strValue[strValue.length () - 1] == ']') { // New Section. - strSection = strValue.substr (1, strValue.length () - 2); - secResult[strSection] = IniFileSections::mapped_type (); + secResult.emplace(strSection, IniFileSections::mapped_type{}); } else {