summaryrefslogtreecommitdiffstats
path: root/views/examples
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-27 23:01:16 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-27 23:01:16 +0000
commitbcde254237973b4576a53b97defde3a5ba69519a (patch)
treed4cdb2b6e3327b8f8cbc30105eb8f1af7c2a4662 /views/examples
parent15c3e778f691c55af56fca749b2ec30c93195bd1 (diff)
downloadchromium_src-bcde254237973b4576a53b97defde3a5ba69519a.zip
chromium_src-bcde254237973b4576a53b97defde3a5ba69519a.tar.gz
chromium_src-bcde254237973b4576a53b97defde3a5ba69519a.tar.bz2
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
Diffstat (limited to 'views/examples')
-rw-r--r--views/examples/message_box_example.h7
-rw-r--r--views/examples/radio_button_example.h7
2 files changed, 10 insertions, 4 deletions
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