summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornarroo <narroo@vt.edu>2014-02-17 14:45:31 +0100
committernarroo <narroo@vt.edu>2014-02-17 14:45:31 +0100
commit3ce8bf9712f09bf670e3cb11138c7be9bb26b211 (patch)
treec7e69729b9127c44f223b063ad50934c9d698202
parentReworked RemoveBom to use unsigned chars and reverted the logic changes in WriteFile. Should work fine now. (diff)
downloadcuberite-3ce8bf9712f09bf670e3cb11138c7be9bb26b211.tar
cuberite-3ce8bf9712f09bf670e3cb11138c7be9bb26b211.tar.gz
cuberite-3ce8bf9712f09bf670e3cb11138c7be9bb26b211.tar.bz2
cuberite-3ce8bf9712f09bf670e3cb11138c7be9bb26b211.tar.lz
cuberite-3ce8bf9712f09bf670e3cb11138c7be9bb26b211.tar.xz
cuberite-3ce8bf9712f09bf670e3cb11138c7be9bb26b211.tar.zst
cuberite-3ce8bf9712f09bf670e3cb11138c7be9bb26b211.zip
Diffstat (limited to '')
-rw-r--r--lib/inifile/iniFile.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/inifile/iniFile.cpp b/lib/inifile/iniFile.cpp
index fbbf5c197..212c1d14d 100644
--- a/lib/inifile/iniFile.cpp
+++ b/lib/inifile/iniFile.cpp
@@ -130,8 +130,8 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect)
switch (line[pLeft])
{
- case '[':
- {
+ case '[':
+ {
if (
((pRight = line.find_last_of("]")) != AString::npos) &&
(pRight > pLeft)
@@ -141,19 +141,19 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect)
AddKeyName(keyname);
}
break;
- }
+ }
- case '=':
- {
+ case '=':
+ {
valuename = line.substr(0, pLeft);
value = line.substr(pLeft + 1);
AddValue(keyname, valuename, value);
break;
- }
+ }
- case ';':
- case '#':
- {
+ case ';':
+ case '#':
+ {
if (names.size() == 0)
{
AddHeaderComment(line.substr(pLeft + 1));
@@ -163,7 +163,7 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect)
AddKeyComment(keyname, line.substr(pLeft + 1));
}
break;
- }
+ }
} // switch (line[pLeft])
} // while(getline(f, line))