summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Config/Layer.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-05-03 14:07:41 +0200
committerGitHub <noreply@github.com>2020-05-03 14:07:41 +0200
commit90ba73c6c2cdc6d92bff75f4e66d48b044ebdfac (patch)
tree65e612f4bb02ee0d7cea8f5856afd0a52fd66626 /Source/Core/Common/Config/Layer.cpp
parent8d4e8314a3dcd8680ae81d91fb7e076b4496b43b (diff)
parent19da1011648beb324122f36e6da4cd14cc4c7217 (diff)
Merge pull request #8787 from leoetlino/config-config
Remove redundant Config prefix from ConfigInfo/ConfigLocation
Diffstat (limited to 'Source/Core/Common/Config/Layer.cpp')
-rw-r--r--Source/Core/Common/Config/Layer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/Common/Config/Layer.cpp b/Source/Core/Common/Config/Layer.cpp
index 573c79c04e..311e99ded2 100644
--- a/Source/Core/Common/Config/Layer.cpp
+++ b/Source/Core/Common/Config/Layer.cpp
@@ -37,13 +37,13 @@ Layer::~Layer()
Save();
}
-bool Layer::Exists(const ConfigLocation& location) const
+bool Layer::Exists(const Location& location) const
{
const auto iter = m_map.find(location);
return iter != m_map.end() && iter->second.has_value();
}
-bool Layer::DeleteKey(const ConfigLocation& location)
+bool Layer::DeleteKey(const Location& location)
{
m_is_dirty = true;
bool had_value = false;
@@ -68,14 +68,14 @@ void Layer::DeleteAllKeys()
Section Layer::GetSection(System system, const std::string& section)
{
- return Section{m_map.lower_bound(ConfigLocation{system, section, ""}),
- m_map.lower_bound(ConfigLocation{system, section + '\001', ""})};
+ return Section{m_map.lower_bound(Location{system, section, ""}),
+ m_map.lower_bound(Location{system, section + '\001', ""})};
}
ConstSection Layer::GetSection(System system, const std::string& section) const
{
- return ConstSection{m_map.lower_bound(ConfigLocation{system, section, ""}),
- m_map.lower_bound(ConfigLocation{system, section + '\001', ""})};
+ return ConstSection{m_map.lower_bound(Location{system, section, ""}),
+ m_map.lower_bound(Location{system, section + '\001', ""})};
}
void Layer::Load()