summaryrefslogtreecommitdiff
path: root/zen/zstring.cpp
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-06-19 16:18:18 -0400
committerB Stack <bgstack15@gmail.com>2020-06-19 16:18:18 -0400
commitb2801fb887fe40875b3ec90619b011b45c1d2796 (patch)
treefbbe856cbc0ba5a5d3a831f3ec514563cc69ecb1 /zen/zstring.cpp
parentMerge branch '10.24' into 'master' (diff)
downloadFreeFileSync-b2801fb887fe40875b3ec90619b011b45c1d2796.tar.gz
FreeFileSync-b2801fb887fe40875b3ec90619b011b45c1d2796.tar.bz2
FreeFileSync-b2801fb887fe40875b3ec90619b011b45c1d2796.zip
add upstream 10.25
Diffstat (limited to 'zen/zstring.cpp')
-rw-r--r--zen/zstring.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/zen/zstring.cpp b/zen/zstring.cpp
index 8b16e02d..690f004b 100644
--- a/zen/zstring.cpp
+++ b/zen/zstring.cpp
@@ -64,7 +64,7 @@ Zstring getUnicodeNormalForm(const Zstring& str)
return outStr;
}
- catch (SysError&)
+ catch ([[maybe_unused]] const SysError& e)
{
assert(false);
return str;
@@ -177,8 +177,7 @@ int compareNatural(const Zstring& lhs, const Zstring& rhs)
const char* const strEndL = strL + lhsNorm.size();
const char* const strEndR = strR + rhsNorm.size();
- /*
- - compare strings after conceptually creating blocks of whitespace/numbers/text
+ /* - compare strings after conceptually creating blocks of whitespace/numbers/text
- implement strict weak ordering!
- don't follow broken "strnatcasecmp": https://github.com/php/php-src/blob/master/ext/standard/strnatcmp.c
1. incorrect non-ASCII CI-comparison
@@ -186,8 +185,7 @@ int compareNatural(const Zstring& lhs, const Zstring& rhs)
3. incorrect trimming of *all* whitespace
4. arbitrary handling of leading 0 only at string begin
5. incorrect handling of whitespace following a number
- 6. code is a mess
- */
+ 6. code is a mess */
for (;;)
{
if (strL == strEndL || strR == strEndR)
bgstack15