diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-05-10 20:33:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-10 20:33:59 +0200 |
| commit | ade0e51a78a08f8c1c4e7ca055e5f6621e387f36 (patch) | |
| tree | 62a94136ef539634865f2225033523b7289cd22c /Source/Core/Common/Config/Layer.cpp | |
| parent | eab243d6ee651efc508fc0470bf4598d529de9b6 (diff) | |
| parent | 6185933d186840a4bf3a730df7515231f6bc2718 (diff) | |
Merge pull request #5403 from leoetlino/formatting
Config: Fix a formatting issue
Diffstat (limited to 'Source/Core/Common/Config/Layer.cpp')
| -rw-r--r-- | Source/Core/Common/Config/Layer.cpp | 10 |
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; |
