From 4df121e6dcdf53436f50ce81dd60096ce0138a2c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 1 Sep 2012 20:49:03 +0300 Subject: Add const to more classes. --- src/gui/widgets/setupitem.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/setupitem.cpp') diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp index a835bf51a..f569fddb5 100644 --- a/src/gui/widgets/setupitem.cpp +++ b/src/gui/widgets/setupitem.cpp @@ -125,7 +125,7 @@ void SetupItem::load() } } -void SetupItem::save() +void SetupItem::save() const { Configuration *const cfg = getConfig(); cfg->setValue(mKeyName, mValue); @@ -629,7 +629,8 @@ SetupItemSlider::SetupItemSlider(std::string text, std::string description, } SetupItemSlider::SetupItemSlider(std::string text, std::string description, - std::string keyName, SetupTabScroll *parent, + std::string keyName, + SetupTabScroll *const parent, std::string eventName, const double min, const double max, std::string def, const int width, -- cgit v1.2.3-70-g09d2