Fixed Tab spacing of cases.
This commit is contained in:
parent
6eefd54d45
commit
3ce8bf9712
@ -130,8 +130,8 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect)
|
|||||||
|
|
||||||
switch (line[pLeft])
|
switch (line[pLeft])
|
||||||
{
|
{
|
||||||
case '[':
|
case '[':
|
||||||
{
|
{
|
||||||
if (
|
if (
|
||||||
((pRight = line.find_last_of("]")) != AString::npos) &&
|
((pRight = line.find_last_of("]")) != AString::npos) &&
|
||||||
(pRight > pLeft)
|
(pRight > pLeft)
|
||||||
@ -141,19 +141,19 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect)
|
|||||||
AddKeyName(keyname);
|
AddKeyName(keyname);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case '=':
|
case '=':
|
||||||
{
|
{
|
||||||
valuename = line.substr(0, pLeft);
|
valuename = line.substr(0, pLeft);
|
||||||
value = line.substr(pLeft + 1);
|
value = line.substr(pLeft + 1);
|
||||||
AddValue(keyname, valuename, value);
|
AddValue(keyname, valuename, value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case ';':
|
case ';':
|
||||||
case '#':
|
case '#':
|
||||||
{
|
{
|
||||||
if (names.size() == 0)
|
if (names.size() == 0)
|
||||||
{
|
{
|
||||||
AddHeaderComment(line.substr(pLeft + 1));
|
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));
|
AddKeyComment(keyname, line.substr(pLeft + 1));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} // switch (line[pLeft])
|
} // switch (line[pLeft])
|
||||||
} // while(getline(f, line))
|
} // while(getline(f, line))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user