Removed some useless static_cast.

This commit is contained in:
dankan1890
2016-08-15 00:07:55 +02:00
parent cdba162897
commit 236ba4356e
5 changed files with 6 additions and 6 deletions

View File

@@ -235,7 +235,7 @@ namespace nana{ namespace drawerbase
if(shortkey)
{
unsigned off_w = (shortkey_pos ? graph.text_extent_size(mbstr.c_str(), static_cast<unsigned>(shortkey_pos)).width : 0);
unsigned off_w = (shortkey_pos ? graph.text_extent_size(mbstr.c_str(), shortkey_pos).width : 0);
wchar_t keystr[2] = {nana::utf::char_at(mbstr.c_str() + shortkey_pos, 0, 0), 0};
auto shortkey_size = graph.text_extent_size(keystr, 1);