From 87a0fd3a49b3d6680bf899ae1b020818fb0715a2 Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Mon, 15 Feb 2016 14:10:13 +0100 Subject: [PATCH] fixing 2: tabbar append error in gcc linux - travis see: https://travis-ci.org/cnjinhao/nana/jobs/109245565 --- include/nana/gui/widgets/tabbar.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {})