diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:20:07 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:20:07 +0200 |
commit | 88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170 (patch) | |
tree | c6c5babb49b90293380106b81ae5c446959ac70f /zen/file_error.h | |
parent | 5.3 (diff) | |
download | FreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.tar.gz FreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.tar.bz2 FreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.zip |
5.4
Diffstat (limited to 'zen/file_error.h')
-rw-r--r-- | zen/file_error.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/zen/file_error.h b/zen/file_error.h index 4565d0b7..622d6a47 100644 --- a/zen/file_error.h +++ b/zen/file_error.h @@ -9,7 +9,7 @@ #include <string> #include "zstring.h" -#include "utf8.h" +#include "utf.h" #include "last_error.h" //we'll need this later anyway! namespace zen @@ -39,7 +39,7 @@ DEFINE_NEW_FILE_ERROR(ErrorFileLocked); //allow implicit UTF8 conversion: since std::wstring models a GUI string, convenience is more important than performance inline -std::wstring operator+(const std::wstring& lhs, const Zstring& rhs) { return std::wstring(lhs) += utf8CvrtTo<std::wstring>(rhs); } +std::wstring operator+(const std::wstring& lhs, const Zstring& rhs) { return std::wstring(lhs) += utfCvrtTo<std::wstring>(rhs); } //we musn't put our overloads in namespace std, but namespace zen (+ using directive) is sufficient @@ -48,10 +48,9 @@ inline std::wstring fmtFileName(const Zstring& filename) { std::wstring output; - output.reserve(filename.size() + 2); - output += L'\"'; - output += utf8CvrtTo<std::wstring>(filename); - output += L'\"'; + output += L'\''; + output += utfCvrtTo<std::wstring>(filename); + output += L'\''; return output; } } |