summaryrefslogtreecommitdiffstats
path: root/lib/inifile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/inifile')
-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))