From 0a97dd8e84c99e8733de357a1184277ac63a1806 Mon Sep 17 00:00:00 2001 From: Alexei Dobrohotov Date: Sat, 21 Sep 2019 15:05:12 +0300 Subject: [PATCH] [Regression] Fix horribly broken fallback loading --- components/fallback/validate.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/fallback/validate.hpp b/components/fallback/validate.hpp index a1d3f9601..cef52e462 100644 --- a/components/fallback/validate.hpp +++ b/components/fallback/validate.hpp @@ -39,10 +39,7 @@ namespace Fallback std::string key(temp.substr(0, sep)); std::string value(temp.substr(sep + 1)); - if (map->mMap.find(key) == map->mMap.end()) - { - map->mMap.insert(std::make_pair(key, value)); - } + map->mMap[key] = value; } } }