Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Common/TextConfig.cpp')
-rwxr-xr-xCommon/TextConfig.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Common/TextConfig.cpp b/Common/TextConfig.cpp
index 1d355e8a..4fce320a 100755
--- a/Common/TextConfig.cpp
+++ b/Common/TextConfig.cpp
@@ -16,13 +16,14 @@ static bool IsDelimitChar(char c)
static AString GetIDString(const char *string, int &finishPos)
{
AString result;
- for (finishPos = 0; true; finishPos++)
+ for (finishPos = 0; ; finishPos++)
{
char c = string[finishPos];
if (IsDelimitChar(c) || c == '=')
- return result;
+ break;
result += c;
}
+ return result;
}
static bool WaitNextLine(const AString &string, int &pos)
@@ -57,7 +58,7 @@ bool GetTextConfig(const AString &string, CObjectVector<CTextConfigPair> &pairs)
/////////////////////
// read strings
- while (true)
+ for (;;)
{
if (!SkipSpaces(string, pos))
break;
@@ -80,7 +81,7 @@ bool GetTextConfig(const AString &string, CObjectVector<CTextConfigPair> &pairs)
return false;
pos++;
AString message;
- while(true)
+ for (;;)
{
if (pos >= string.Length())
return false;