From 7041ab5d41644bc3310b5c16b9c0aa3818a03d10 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 16 Mar 2011 14:06:26 +0200 Subject: skeleton for events handler functions return type correction --- core/utf8.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'core/utf8.cpp') diff --git a/core/utf8.cpp b/core/utf8.cpp index c5e83e1..2dac1ea 100644 --- a/core/utf8.cpp +++ b/core/utf8.cpp @@ -20,20 +20,18 @@ std::string toUTF8(std::wstring str) { std::string ustr; - std::wstring tmpstr; - utf8::replace_invalid(str.begin(), str.end(), back_inserter(tmpstr)); - utf8::utf16to8(tmpstr.begin(), tmpstr.end(), back_inserter(ustr)); + utf8::utf16to8(str.begin(), str.end(), back_inserter(ustr)); return ustr; } -std::string toUTF8(std::string str) +/*std::string toUTF8(std::string str) { std::string ustr; std::string tmpstr; utf8::replace_invalid(str.begin(), str.end(), back_inserter(tmpstr)); utf8::utf16to8(tmpstr.begin(), tmpstr.end(), back_inserter(ustr)); return ustr; -} +}*/ -- cgit v1.2.3