This commit is contained in:
Igor Pavlov
2023-12-22 17:17:05 +00:00
committed by Kornel
parent ec44a8a070
commit a36c48cece
954 changed files with 42199 additions and 25482 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;