diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-08 18:27:02 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-08 18:27:02 +0000 |
commit | be9cc1e25193726e62de79bdfa0d3afb65fd0ac7 (patch) | |
tree | 1246a44d9bad9b493f56289f46c2acae2cfa0584 | |
parent | bc435db7f1db0b0a812a3be3f8e872fbae680d19 (diff) | |
download | chromium_src-be9cc1e25193726e62de79bdfa0d3afb65fd0ac7.zip chromium_src-be9cc1e25193726e62de79bdfa0d3afb65fd0ac7.tar.gz chromium_src-be9cc1e25193726e62de79bdfa0d3afb65fd0ac7.tar.bz2 |
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
-rw-r--r-- | chrome/browser/ui/views/toolbar_view.cc | 2 | ||||
-rw-r--r-- | chrome/browser/ui/views/toolbar_view.h | 2 | ||||
-rw-r--r-- | views/view.cc | 2 | ||||
-rw-r--r-- | 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 |