summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Config/Config.cpp
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2017-10-29 19:11:15 +0000
committerMerryMage <MerryMage@users.noreply.github.com>2017-11-15 18:04:40 +0000
commit4c24629b9551cab8af653a2bbcbe6d1639b3edb2 (patch)
tree95f17ded4d887ad4df99463e49078c5de0377aa4 /Source/Core/Common/Config/Config.cpp
parentf3b52c07d74d528a81c818d86c12981a6028f351 (diff)
Config: Flatten structures
Originally, Layer contained a std::map of Sections, which containted a std::map containing the (key, value) pairs. Here we flattern this structure so that only one std::map is required, reducing the number of indirections required and vastly simplifying the code.
Diffstat (limited to 'Source/Core/Common/Config/Config.cpp')
-rw-r--r--Source/Core/Common/Config/Config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Config/Config.cpp b/Source/Core/Common/Config/Config.cpp
index abb2304749..a3504f80d2 100644
--- a/Source/Core/Common/Config/Config.cpp
+++ b/Source/Core/Common/Config/Config.cpp
@@ -133,7 +133,7 @@ LayerType GetActiveLayerForConfig(const ConfigLocation& config)
if (!LayerExists(layer))
continue;
- if (GetLayer(layer)->Exists(config.system, config.section, config.key))
+ if (GetLayer(layer)->Exists(config))
return layer;
}