summaryrefslogtreecommitdiff
path: root/zen/zstring.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2020-02-23 22:12:27 +0000
committerDaniel Wilhelm <shieldwed@outlook.com>2020-02-23 22:12:27 +0000
commit450f803dd75f831f8ee14072fe0eb664bbe518df (patch)
treeb3e831d44df50348a20f3541b6062f7fbab6ff3d /zen/zstring.cpp
parentMerge branch '10.19' into 'master' (diff)
parentremove upstream deleted files (diff)
downloadFreeFileSync-450f803dd75f831f8ee14072fe0eb664bbe518df.tar.gz
FreeFileSync-450f803dd75f831f8ee14072fe0eb664bbe518df.tar.bz2
FreeFileSync-450f803dd75f831f8ee14072fe0eb664bbe518df.zip
Merge branch '10.20' into 'master'10.20
add upstream 10.20 See merge request opensource-tracking/FreeFileSync!17
Diffstat (limited to 'zen/zstring.cpp')
-rw-r--r--zen/zstring.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/zstring.cpp b/zen/zstring.cpp
index f018b14f..ff20b8cf 100644
--- a/zen/zstring.cpp
+++ b/zen/zstring.cpp
@@ -17,7 +17,7 @@ using namespace zen;
Zstring makeUpperCopy(const Zstring& str)
{
//fast pre-check:
- if (isAsciiString(str.c_str())) //perf: in the range of 3.5ns
+ if (isAsciiString(str)) //perf: in the range of 3.5ns
{
Zstring output = str;
for (Zchar& c : output) c = asciiToUpper(c);
@@ -49,7 +49,7 @@ Zstring makeUpperCopy(const Zstring& str)
Zstring getUnicodeNormalForm(const Zstring& str)
{
//fast pre-check:
- if (isAsciiString(str.c_str())) //perf: in the range of 3.5ns
+ if (isAsciiString(str)) //perf: in the range of 3.5ns
return str; //god bless our ref-counting! => save output string memory consumption!
//Example: const char* decomposed = "\x6f\xcc\x81";
bgstack15