From be9cc1e25193726e62de79bdfa0d3afb65fd0ac7 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Tue, 8 Nov 2011 18:27:02 +0000 Subject: views: Constantify two kViewClassName strings. R=sky@chromium.org Review URL: http://codereview.chromium.org/8495014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109056 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/views/toolbar_view.cc | 2 +- chrome/browser/ui/views/toolbar_view.h | 2 +- views/view.cc | 2 +- views/view.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/browser/ui/views/toolbar_view.cc b/chrome/browser/ui/views/toolbar_view.cc index 4616302..dc4b96b 100644 --- a/chrome/browser/ui/views/toolbar_view.cc +++ b/chrome/browser/ui/views/toolbar_view.cc @@ -50,7 +50,7 @@ #endif // static -char ToolbarView::kViewClassName[] = "browser/ui/views/ToolbarView"; +const char ToolbarView::kViewClassName[] = "browser/ui/views/ToolbarView"; // The space between items is 4 px in general. const int ToolbarView::kStandardSpacing = 4; // The top of the toolbar has an edge we have to skip over in addition to the 4 diff --git a/chrome/browser/ui/views/toolbar_view.h b/chrome/browser/ui/views/toolbar_view.h index c5df50a..48d45a4 100644 --- a/chrome/browser/ui/views/toolbar_view.h +++ b/chrome/browser/ui/views/toolbar_view.h @@ -42,7 +42,7 @@ class ToolbarView : public AccessiblePaneView, public views::ButtonListener { public: // The view class name. - static char kViewClassName[]; + static const char kViewClassName[]; explicit ToolbarView(Browser* browser); virtual ~ToolbarView(); diff --git a/views/view.cc b/views/view.cc index b3bfeee..b3644dc 100644 --- a/views/view.cc +++ b/views/view.cc @@ -84,7 +84,7 @@ namespace views { ViewsDelegate* ViewsDelegate::views_delegate = NULL; // static -char View::kViewClassName[] = "views/View"; +const char View::kViewClassName[] = "views/View"; //////////////////////////////////////////////////////////////////////////////// // View, public: diff --git a/views/view.h b/views/view.h index c0154f0..6c49097 100644 --- a/views/view.h +++ b/views/view.h @@ -363,7 +363,7 @@ class VIEWS_EXPORT View : public ui::LayerDelegate, // Attributes ---------------------------------------------------------------- // The view class name. - static char kViewClassName[]; + static const char kViewClassName[]; // Return the receiving view's class name. A view class is a string which // uniquely identifies the view class. It is intended to be used as a way to -- cgit v1.1