summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-26 18:31:26 +0000
committerchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-26 18:31:26 +0000
commit30ebee97923efa86769332a801f92efcd6aa8121 (patch)
tree443030c313a70551e9c936972652938ad8b6c8a0
parentdafcaac300df9d30f4c1f94dfcdb9c7cc0b6f4fd (diff)
downloadchromium_src-30ebee97923efa86769332a801f92efcd6aa8121.zip
chromium_src-30ebee97923efa86769332a801f92efcd6aa8121.tar.gz
chromium_src-30ebee97923efa86769332a801f92efcd6aa8121.tar.bz2
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
-rw-r--r--chrome/browser/chromeos/status/power_menu_button.h2
-rw-r--r--views/controls/slider/slider.h8
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();