diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2011-03-16 14:06:26 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2011-03-16 14:06:26 +0200 |
commit | 7041ab5d41644bc3310b5c16b9c0aa3818a03d10 (patch) | |
tree | e3cab3306b88a72cd32e13bb4baa192f7d775e65 /core/utf8.cpp | |
parent | 01212a19ce05aaa27ff33dae06bed646e7a65535 (diff) |
skeleton for events handler
functions return type correction
Diffstat (limited to 'core/utf8.cpp')
-rw-r--r-- | core/utf8.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
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; -} +}*/ |