From 0471998e13aada9a76e92b13ab3885c2d1c2fb84 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Tue, 15 Dec 2020 01:05:33 +0100 Subject: Add missing braces around single-line statements --- src/controllers/controllerpresetinfo.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/controllers/controllerpresetinfo.cpp') diff --git a/src/controllers/controllerpresetinfo.cpp b/src/controllers/controllerpresetinfo.cpp index 34f075de5b..b519330acb 100644 --- a/src/controllers/controllerpresetinfo.cpp +++ b/src/controllers/controllerpresetinfo.cpp @@ -47,16 +47,24 @@ PresetInfo::PresetInfo(const QString& preset_path) } QDomElement dom_author = info.firstChildElement("author"); - if (!dom_author.isNull()) m_author = dom_author.text(); + if (!dom_author.isNull()) { + m_author = dom_author.text(); + } QDomElement dom_description = info.firstChildElement("description"); - if (!dom_description.isNull()) m_description = dom_description.text(); + if (!dom_description.isNull()) { + m_description = dom_description.text(); + } QDomElement dom_forums = info.firstChildElement("forums"); - if (!dom_forums.isNull()) m_forumlink = dom_forums.text(); + if (!dom_forums.isNull()) { + m_forumlink = dom_forums.text(); + } QDomElement dom_wiki = info.firstChildElement("wiki"); - if (!dom_wiki.isNull()) m_wikilink = dom_wiki.text(); + if (!dom_wiki.isNull()) { + m_wikilink = dom_wiki.text(); + } QDomElement devices = info.firstChildElement("devices"); if (!devices.isNull()) { -- cgit v1.2.3