summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Config/Layer.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2017-05-10 17:55:44 +0200
committerLéo Lam <leo@innovatetechnologi.es>2017-05-10 17:56:09 +0200
commit6185933d186840a4bf3a730df7515231f6bc2718 (patch)
treed0f45fc4aa3a649f90ba6a5631fa3f2d5bf95109 /Source/Core/Common/Config/Layer.cpp
parentf1f8beef258093edfabe2933a36adff7e9ee86c4 (diff)
Config: Fix a formatting issue
Not sure why clang-format did not catch this on the lint builder, but it definitely doesn't like the lines being too long here.
Diffstat (limited to 'Source/Core/Common/Config/Layer.cpp')
-rw-r--r--Source/Core/Common/Config/Layer.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/Core/Common/Config/Layer.cpp b/Source/Core/Common/Config/Layer.cpp
index 1e17372c82..61f90538a0 100644
--- a/Source/Core/Common/Config/Layer.cpp
+++ b/Source/Core/Common/Config/Layer.cpp
@@ -68,9 +68,14 @@ Section* Layer::GetOrCreateSection(System system, const std::string& section_nam
if (!section)
{
if (m_layer == LayerType::Meta)
- m_sections[system].emplace_back(std::make_unique<RecursiveSection>(m_layer, system, section_name));
+ {
+ m_sections[system].emplace_back(
+ std::make_unique<RecursiveSection>(m_layer, system, section_name));
+ }
else
+ {
m_sections[system].emplace_back(std::make_unique<Section>(m_layer, system, section_name));
+ }
section = m_sections[system].back().get();
}
return section;
@@ -140,7 +145,8 @@ Section* RecursiveLayer::GetOrCreateSection(System system, const std::string& se
Section* section = Layer::GetSection(system, section_name);
if (!section)
{
- m_sections[system].emplace_back(std::make_unique<RecursiveSection>(m_layer, system, section_name));
+ m_sections[system].emplace_back(
+ std::make_unique<RecursiveSection>(m_layer, system, section_name));
section = m_sections[system].back().get();
}
return section;