From bcde254237973b4576a53b97defde3a5ba69519a Mon Sep 17 00:00:00 2001 From: "nsylvain@chromium.org" Date: Sun, 27 Sep 2009 23:01:16 +0000 Subject: Fix build breakage by disabling a warning. tbr:oshima@chromium.org Review URL: http://codereview.chromium.org/242028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27352 0039d316-1c4b-4281-b951-d872f2087c98 --- views/examples/message_box_example.h | 7 +++++-- views/examples/radio_button_example.h | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'views/examples') diff --git a/views/examples/message_box_example.h b/views/examples/message_box_example.h index e92425f..d586d58 100644 --- a/views/examples/message_box_example.h +++ b/views/examples/message_box_example.h @@ -5,6 +5,7 @@ #ifndef VIEWS_EXAMPLES_MESSAGE_BOX_EXAMPLE_H_ #define VIEWS_EXAMPLES_MESSAGE_BOX_EXAMPLE_H_ +#include "base/compiler_specific.h" #include "base/string_util.h" #include "views/controls/button/text_button.h" #include "views/controls/message_box_view.h" @@ -21,8 +22,10 @@ class MessageBoxExample : protected ExampleBase, private views::ButtonListener { : ExampleBase(message), message_box_view_( new MessageBoxView(0, L"Message Box Message", L"Default Prompt")), - status_(new views::TextButton(this, L"Show Status")), - toggle_(new views::TextButton(this, L"Toggle Checkbox")) { + ALLOW_THIS_IN_INITIALIZER_LIST( + status_(new views::TextButton(this, L"Show Status"))), + ALLOW_THIS_IN_INITIALIZER_LIST( + toggle_(new views::TextButton(this, L"Toggle Checkbox"))) { views::View* container = new views::View(); tabbed_pane->AddTab(L"Message Box View", container); diff --git a/views/examples/radio_button_example.h b/views/examples/radio_button_example.h index 732fa3d..db0e762 100644 --- a/views/examples/radio_button_example.h +++ b/views/examples/radio_button_example.h @@ -5,6 +5,7 @@ #ifndef VIEWS_EXAMPLES_RADIO_BUTTON_EXAMPLE_H_ #define VIEWS_EXAMPLES_RADIO_BUTTON_EXAMPLE_H_ +#include "base/compiler_specific.h" #include "base/string_util.h" #include "views/controls/button/radio_button.h" #include "views/controls/button/text_button.h" @@ -18,8 +19,10 @@ class RadioButtonExample : protected ExampleBase, public: RadioButtonExample(views::TabbedPane* tabbed_pane, views::Label* message) : ExampleBase(message), - select_(new views::TextButton(this, L"Select")), - status_(new views::TextButton(this, L"Show Status")) { + ALLOW_THIS_IN_INITIALIZER_LIST( + select_(new views::TextButton(this, L"Select"))), + ALLOW_THIS_IN_INITIALIZER_LIST( + status_(new views::TextButton(this, L"Show Status"))) { int all = arraysize(radio_buttons_); // divide buttons into 2 groups -- cgit v1.1