summaryrefslogtreecommitdiff
path: root/zen/zstring.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:52:04 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:52:04 +0200
commit1845c028b8cb8496d1d78f0da738120e1c31401a (patch)
treeadf9fb436aea09be367aef8ed3b6cdbf6a46e34c /zen/zstring.cpp
parent6.7 (diff)
downloadFreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.tar.gz
FreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.tar.bz2
FreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.zip
6.8
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 3e579b1e..f1858efc 100644
--- a/zen/zstring.cpp
+++ b/zen/zstring.cpp
@@ -12,7 +12,6 @@
#include "win_ver.h"
#elif defined ZEN_MAC
-//#include <zen/scope_guard.h>
#include <ctype.h> //toupper()
#endif
@@ -75,8 +74,8 @@ private:
}
}
- LeakChecker(const LeakChecker&);
- LeakChecker& operator=(const LeakChecker&);
+ LeakChecker (const LeakChecker&) = delete;
+ LeakChecker& operator=(const LeakChecker&) = delete;
static std::string rawMemToString(const void* ptr, size_t size)
{
@@ -165,7 +164,7 @@ int z_impl::compareFilenamesNoCase(const wchar_t* lhs, const wchar_t* rhs, size_
else //fallback
{
//do NOT use "CompareString"; this function is NOT accurate (even with LOCALE_INVARIANT and SORT_STRINGSORT): for example "weiß" == "weiss"!!!
- //the only reliable way to compare filenames (with XP) is to call "CharUpper" or "LCMapString":
+ //the only reliable way to compare filepaths (with XP) is to call "CharUpper" or "LCMapString":
auto copyToUpperCase = [](const wchar_t* strIn, wchar_t* strOut, size_t len)
{
bgstack15