diff options
Diffstat (limited to 'views/controls/button/checkbox.cc')
-rw-r--r-- | views/controls/button/checkbox.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/views/controls/button/checkbox.cc b/views/controls/button/checkbox.cc index 252fdc8..6eb683d 100644 --- a/views/controls/button/checkbox.cc +++ b/views/controls/button/checkbox.cc @@ -5,6 +5,7 @@ #include "views/controls/button/checkbox.h" #include "base/logging.h" +#include "base/utf_string_conversions.h" #include "ui/base/accessibility/accessible_view_state.h" #include "ui/gfx/canvas.h" #include "views/controls/label.h" @@ -19,8 +20,8 @@ static const int kCheckboxLabelSpacing = 4; //////////////////////////////////////////////////////////////////////////////// // Checkbox, public: -Checkbox::Checkbox(const std::wstring& label) - : TextButtonBase(NULL, label), +Checkbox::Checkbox(const string16& label) + : TextButtonBase(NULL, UTF16ToWideHack(label)), checked_(false) { set_border(new TextButtonNativeThemeBorder(this)); set_focusable(true); |