From 30ebee97923efa86769332a801f92efcd6aa8121 Mon Sep 17 00:00:00 2001 From: "chocobo@chromium.org" Date: Fri, 26 Mar 2010 18:31:26 +0000 Subject: Fix compiler warnings. TEST=none BUG=none Review URL: http://codereview.chromium.org/1349005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42785 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chromeos/status/power_menu_button.h | 2 +- views/controls/slider/slider.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chrome/browser/chromeos/status/power_menu_button.h b/chrome/browser/chromeos/status/power_menu_button.h index 8cff5f1..15601bc 100644 --- a/chrome/browser/chromeos/status/power_menu_button.h +++ b/chrome/browser/chromeos/status/power_menu_button.h @@ -46,7 +46,7 @@ class PowerMenuButton : public StatusAreaButton, // PowerLibrary::Observer implementation. virtual void PowerChanged(PowerLibrary* obj); - const int icon_id() const { return icon_id_; } + int icon_id() const { return icon_id_; } protected: // StatusAreaButton implementation. diff --git a/views/controls/slider/slider.h b/views/controls/slider/slider.h index 00079c4..531ef05 100644 --- a/views/controls/slider/slider.h +++ b/views/controls/slider/slider.h @@ -51,20 +51,20 @@ class Slider : public View { virtual void NotifyValueChanged(); // Gets/Sets the value in the slider. - const double value() const { return value_; } + double value() const { return value_; } void SetValue(double value); // Accessor for |style_|. StyleFlags style() const { return style_; } // Accessor for |min_|. - const double min() const { return min_; } + double min() const { return min_; } // Accessor for |max_|. - const double max() const { return max_; } + double max() const { return max_; } // Accessor for |step_|. - const double step() const { return step_; } + double step() const { return step_; } // Overridden from View: virtual void Layout(); -- cgit v1.1