refacter tooltip

remove compiler warnings
remove deprecated code
This commit is contained in:
Jinhao
2017-05-01 16:57:26 +08:00
parent 9b90f3d3fd
commit 3657be8f7d
4 changed files with 12 additions and 37 deletions

View File

@@ -105,11 +105,10 @@ namespace nana
text.resize(string_length);
ifs.read(&text.front(), string_length);
for (auto i = 0; i < string_length; i += 2)
{
for (std::size_t i = 0; i < string_length; i += 2)
std::swap(text[i], text[i + 1]);
}
text = nana::charset(text, nana::unicode::utf16).to_bytes(nana::unicode::utf8);
text = ::nana::charset(text, nana::unicode::utf16).to_bytes(nana::unicode::utf8);
}
}
else