diff --git a/include/nana/gui/widgets/tabbar.hpp b/include/nana/gui/widgets/tabbar.hpp index 4fbb6fe7..2a8d9692 100644 --- a/include/nana/gui/widgets/tabbar.hpp +++ b/include/nana/gui/widgets/tabbar.hpp @@ -263,7 +263,7 @@ namespace nana tabbar& append(std::string text, window attach_wd, value_type value = {}) { - return this->append( std::wstring((nana::charset(std::move(text), nana::unicode::utf8))), attach_wd, std::move(value)); + return this->append( static_cast(nana::charset(std::move(text), nana::unicode::utf8)), attach_wd, std::move(value)); } tabbar& append(std::wstring text, window attach_wd, value_type value = {})