diff options
Diffstat (limited to 'CPP/Common/TextConfig.cpp')
| -rw-r--r-- | CPP/Common/TextConfig.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CPP/Common/TextConfig.cpp b/CPP/Common/TextConfig.cpp index 1428aab..d3e561c 100644 --- a/CPP/Common/TextConfig.cpp +++ b/CPP/Common/TextConfig.cpp | |||
| @@ -15,7 +15,7 @@ static AString GetIDString(const char *s, unsigned &finishPos) | |||
| 15 | AString result; | 15 | AString result; |
| 16 | for (finishPos = 0; ; finishPos++) | 16 | for (finishPos = 0; ; finishPos++) |
| 17 | { | 17 | { |
| 18 | char c = s[finishPos]; | 18 | const char c = s[finishPos]; |
| 19 | if (IsDelimitChar(c) || c == '=') | 19 | if (IsDelimitChar(c) || c == '=') |
| 20 | break; | 20 | break; |
| 21 | result += c; | 21 | result += c; |
| @@ -35,7 +35,7 @@ static bool SkipSpaces(const AString &s, unsigned &pos) | |||
| 35 | { | 35 | { |
| 36 | for (; pos < s.Len(); pos++) | 36 | for (; pos < s.Len(); pos++) |
| 37 | { | 37 | { |
| 38 | char c = s[pos]; | 38 | const char c = s[pos]; |
| 39 | if (!IsDelimitChar(c)) | 39 | if (!IsDelimitChar(c)) |
| 40 | { | 40 | { |
| 41 | if (c != ';') | 41 | if (c != ';') |
| @@ -111,13 +111,13 @@ int FindTextConfigItem(const CObjectVector<CTextConfigPair> &pairs, const char * | |||
| 111 | { | 111 | { |
| 112 | FOR_VECTOR (i, pairs) | 112 | FOR_VECTOR (i, pairs) |
| 113 | if (pairs[i].ID.IsEqualTo(id)) | 113 | if (pairs[i].ID.IsEqualTo(id)) |
| 114 | return i; | 114 | return (int)i; |
| 115 | return -1; | 115 | return -1; |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | UString GetTextConfigValue(const CObjectVector<CTextConfigPair> &pairs, const char *id) | 118 | UString GetTextConfigValue(const CObjectVector<CTextConfigPair> &pairs, const char *id) |
| 119 | { | 119 | { |
| 120 | int index = FindTextConfigItem(pairs, id); | 120 | const int index = FindTextConfigItem(pairs, id); |
| 121 | if (index < 0) | 121 | if (index < 0) |
| 122 | return UString(); | 122 | return UString(); |
| 123 | return pairs[index].String; | 123 | return pairs[index].String; |
