This commit is contained in:
Igor Pavlov 2023-06-21 00:00:00 +00:00
parent 93be7d4abf
commit 5b39dc76f1
951 changed files with 39855 additions and 24810 deletions

View file

@ -15,7 +15,7 @@ static AString GetIDString(const char *s, unsigned &finishPos)
AString result;
for (finishPos = 0; ; finishPos++)
{
char c = s[finishPos];
const char c = s[finishPos];
if (IsDelimitChar(c) || c == '=')
break;
result += c;
@ -35,7 +35,7 @@ static bool SkipSpaces(const AString &s, unsigned &pos)
{
for (; pos < s.Len(); pos++)
{
char c = s[pos];
const char c = s[pos];
if (!IsDelimitChar(c))
{
if (c != ';')
@ -111,13 +111,13 @@ int FindTextConfigItem(const CObjectVector<CTextConfigPair> &pairs, const char *
{
FOR_VECTOR (i, pairs)
if (pairs[i].ID.IsEqualTo(id))
return i;
return (int)i;
return -1;
}
UString GetTextConfigValue(const CObjectVector<CTextConfigPair> &pairs, const char *id)
{
int index = FindTextConfigItem(pairs, id);
const int index = FindTextConfigItem(pairs, id);
if (index < 0)
return UString();
return pairs[index].String;