From 88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:20:07 +0200 Subject: 5.4 --- zen/file_error.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'zen/file_error.h') 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 #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(rhs); } +std::wstring operator+(const std::wstring& lhs, const Zstring& rhs) { return std::wstring(lhs) += utfCvrtTo(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(filename); - output += L'\"'; + output += L'\''; + output += utfCvrtTo(filename); + output += L'\''; return output; } } -- cgit