summaryrefslogtreecommitdiff
path: root/zen/zstring.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:57:46 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:57:46 +0200
commitad4e3d2c55e75193c41356c23619f80add41db18 (patch)
treedd836d120f50e472106e04968ef8185c25e4242e /zen/zstring.cpp
parent7.4 (diff)
downloadFreeFileSync-ad4e3d2c55e75193c41356c23619f80add41db18.tar.gz
FreeFileSync-ad4e3d2c55e75193c41356c23619f80add41db18.tar.bz2
FreeFileSync-ad4e3d2c55e75193c41356c23619f80add41db18.zip
7.5
Diffstat (limited to 'zen/zstring.cpp')
-rw-r--r--zen/zstring.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/zen/zstring.cpp b/zen/zstring.cpp
index e2a756e6..3b29e664 100644
--- a/zen/zstring.cpp
+++ b/zen/zstring.cpp
@@ -21,8 +21,8 @@ using namespace zen;
/*
Perf test: compare strings 10 mio times; 64 bit build
-----------------------------------------------------
- string a = "Fjk84$%kgfj$%T\\\\Gffg\\gsdgf\\fgsx----------d-"
- string b = "fjK84$%kgfj$%T\\\\gfFg\\gsdgf\\fgSy----------dfdf"
+ string a = "Fjk84$%kgfj$%T\\\\Gffg\\gsdgf\\fgsx----------d-"
+ string b = "fjK84$%kgfj$%T\\\\gfFg\\gsdgf\\fgSy----------dfdf"
Windows (UTF16 wchar_t)
4 ns | wcscmp
@@ -125,8 +125,7 @@ Zstring makeUpperCopy(const Zstring& str)
if (len == 0) //LCMapString does not allow input sizes of 0!
return str;
- Zstring output;
- output.resize(len);
+ Zstring output = str;
//LOCALE_INVARIANT is NOT available with Windows 2000 -> ok
bgstack15