diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2008-08-13 04:00:00 +0400 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:15:56 +0300 |
commit | 173c07e166fdf6fcd20f18ea73008f1b628945df (patch) | |
tree | 13ebea85cdc4c16ae93714ff0627ee9f91ad7e08 /CPP/7zip/UI/FileManager/TextPairs.cpp | |
parent | 3901bf0ab88106a5b031cba7bc18d60cdebf7eef (diff) |
4.59 beta
Diffstat (limited to 'CPP/7zip/UI/FileManager/TextPairs.cpp')
-rwxr-xr-x | CPP/7zip/UI/FileManager/TextPairs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CPP/7zip/UI/FileManager/TextPairs.cpp b/CPP/7zip/UI/FileManager/TextPairs.cpp index a149fe37..74df1c62 100755 --- a/CPP/7zip/UI/FileManager/TextPairs.cpp +++ b/CPP/7zip/UI/FileManager/TextPairs.cpp @@ -38,8 +38,8 @@ static UString GetIDString(const wchar_t *srcString, int &finishPos) break; finishPos++; bool isSeparatorChar = IsSeparatorChar(c); - if (c == kNewLineChar || (isSeparatorChar && !quotes) - || (c == kQuoteChar && quotes)) + if (c == kNewLineChar || (isSeparatorChar && !quotes) + || (c == kQuoteChar && quotes)) break; else if (c == kQuoteChar) quotes = true; @@ -60,7 +60,7 @@ static UString GetValueString(const wchar_t *srcString, int &finishPos) if (c == kEndOfLine) break; finishPos++; - if (c == kNewLineChar) + if (c == kNewLineChar) break; result += c; } @@ -131,7 +131,7 @@ void CPairsStorage::Sort() int CPairsStorage::FindID(const UString &id, int &insertPos) { - int left = 0, right = Pairs.Size(); + int left = 0, right = Pairs.Size(); while (left != right) { UINT32 mid = (left + right) / 2; |