summaryrefslogtreecommitdiff
path: root/Source/Core/Common/IniFile.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2014-03-10 23:40:16 +0100
committerPierre Bourdon <delroth@gmail.com>2014-03-10 23:40:16 +0100
commitede46556d9b5043113e19359fee97eb09f9c872c (patch)
tree54442e504fc06d44e80a7351be46a1fead5ad356 /Source/Core/Common/IniFile.cpp
parent52ed10213d085caec6007ae3b3856e50f282c756 (diff)
parent31cfc73a09a8685cbab20502b4bc132e98e2feb5 (diff)
Merge pull request #155 from Parlane/codestyle_fixes
Fixes spacing for "for", "while", "switch" and "if"
Diffstat (limited to 'Source/Core/Common/IniFile.cpp')
-rw-r--r--Source/Core/Common/IniFile.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/Common/IniFile.cpp b/Source/Core/Common/IniFile.cpp
index 604aefc89c..5fb5ce1e38 100644
--- a/Source/Core/Common/IniFile.cpp
+++ b/Source/Core/Common/IniFile.cpp
@@ -373,8 +373,11 @@ bool IniFile::Load(const std::string& filename, bool keep_current_data)
// Lines starting with '$', '*' or '+' are kept verbatim.
// Kind of a hack, but the support for raw lines inside an
// INI is a hack anyway.
- if ((key == "" && value == "")
- || (line.size() >= 1 && (line[0] == '$' || line[0] == '+' || line[0] == '*')))
+ if ((key == "" && value == "") ||
+ (line.size() >= 1 &&
+ (line[0] == '$' ||
+ line[0] == '+' ||
+ line[0] == '*')))
current_section->lines.push_back(line);
else
current_section->Set(key, value);