summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornarroo <narroo@vt.edu>2014-02-17 14:46:41 +0100
committernarroo <narroo@vt.edu>2014-02-17 14:46:41 +0100
commitecabb2b34f8dea427868f76019a1dd7f2b031bf9 (patch)
tree776838e4ba238a01b12e6f455cb5a75ae601f7b3
parentFixed Tab spacing of cases. (diff)
downloadcuberite-ecabb2b34f8dea427868f76019a1dd7f2b031bf9.tar
cuberite-ecabb2b34f8dea427868f76019a1dd7f2b031bf9.tar.gz
cuberite-ecabb2b34f8dea427868f76019a1dd7f2b031bf9.tar.bz2
cuberite-ecabb2b34f8dea427868f76019a1dd7f2b031bf9.tar.lz
cuberite-ecabb2b34f8dea427868f76019a1dd7f2b031bf9.tar.xz
cuberite-ecabb2b34f8dea427868f76019a1dd7f2b031bf9.tar.zst
cuberite-ecabb2b34f8dea427868f76019a1dd7f2b031bf9.zip
-rw-r--r--lib/inifile/iniFile.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/inifile/iniFile.cpp b/lib/inifile/iniFile.cpp
index 212c1d14d..9c5300cdf 100644
--- a/lib/inifile/iniFile.cpp
+++ b/lib/inifile/iniFile.cpp
@@ -132,37 +132,37 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect)
{
case '[':
{
- if (
- ((pRight = line.find_last_of("]")) != AString::npos) &&
- (pRight > pLeft)
- )
- {
- keyname = line.substr(pLeft + 1, pRight - pLeft - 1);
- AddKeyName(keyname);
- }
- break;
+ if (
+ ((pRight = line.find_last_of("]")) != AString::npos) &&
+ (pRight > pLeft)
+ )
+ {
+ keyname = line.substr(pLeft + 1, pRight - pLeft - 1);
+ AddKeyName(keyname);
+ }
+ break;
}
case '=':
{
- valuename = line.substr(0, pLeft);
- value = line.substr(pLeft + 1);
- AddValue(keyname, valuename, value);
- break;
+ valuename = line.substr(0, pLeft);
+ value = line.substr(pLeft + 1);
+ AddValue(keyname, valuename, value);
+ break;
}
case ';':
case '#':
{
- if (names.size() == 0)
- {
- AddHeaderComment(line.substr(pLeft + 1));
- }
- else
- {
- AddKeyComment(keyname, line.substr(pLeft + 1));
- }
- break;
+ if (names.size() == 0)
+ {
+ AddHeaderComment(line.substr(pLeft + 1));
+ }
+ else
+ {
+ AddKeyComment(keyname, line.substr(pLeft + 1));
+ }
+ break;
}
} // switch (line[pLeft])
} // while(getline(f, line))