fix some compiler errors(clang)

This commit is contained in:
Jinhao
2015-10-13 23:16:25 +08:00
parent a9983101ab
commit 84f071dc95
2 changed files with 9 additions and 29 deletions

View File

@@ -474,7 +474,7 @@ namespace paint
::nana::size graphics::bidi_extent_size(const std::string& str) const
{
return bidi_extent_size(std::wstring{ ::nana::charset(str, ::nana::unicode::utf8) });
return bidi_extent_size(static_cast<std::wstring>(::nana::charset(str, ::nana::unicode::utf8)));
}
bool graphics::text_metrics(unsigned & ascent, unsigned& descent, unsigned& internal_leading) const