summaryrefslogtreecommitdiffstats
path: root/src/controllers/controllerpresetinfo.cpp
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-12-15 01:05:33 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-12-15 01:57:06 +0100
commit0471998e13aada9a76e92b13ab3885c2d1c2fb84 (patch)
tree776d15ab92ef044956940bc2228b61256ca4feb9 /src/controllers/controllerpresetinfo.cpp
parent63b858b5d827797eec959d009ad0b970de167dc5 (diff)
Add missing braces around single-line statements
Diffstat (limited to 'src/controllers/controllerpresetinfo.cpp')
-rw-r--r--src/controllers/controllerpresetinfo.cpp16
1 files changed, 12 insertions, 4 deletions
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()) {