mirror of
https://github.com/ip7z/7zip.git
synced 2026-04-21 06:03:40 +00:00
23.01
This commit is contained in:
parent
93be7d4abf
commit
5b39dc76f1
951 changed files with 39855 additions and 24810 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue