[PATCH 10/13] Getters should be const.
Vincent Ordy
vincent at ordy.net
Thu Jun 17 18:28:34 CEST 2010
---
kmymoney/mymoney/mymoneycategory.h | 4 ++--
kmymoney/widgets/kmymoneyaccountselector.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/kmymoney/mymoney/mymoneycategory.h b/kmymoney/mymoney/mymoneycategory.h
index 1fda08d..131f4ba 100644
--- a/kmymoney/mymoney/mymoneycategory.h
+++ b/kmymoney/mymoney/mymoneycategory.h
@@ -43,7 +43,7 @@ public:
~MyMoneyCategory();
// Simple get operations
- QString name(void) {
+ QString name(void) const {
return m_name;
}
QStringList& minorCategories(void) {
@@ -51,7 +51,7 @@ public:
}
// Simple set operations
- bool isIncome(void) {
+ bool isIncome(void) const {
return m_income;
}
void setIncome(const bool val) {
diff --git a/kmymoney/widgets/kmymoneyaccountselector.h b/kmymoney/widgets/kmymoneyaccountselector.h
index 7bb6aa5..2fc4f5c 100644
--- a/kmymoney/widgets/kmymoneyaccountselector.h
+++ b/kmymoney/widgets/kmymoneyaccountselector.h
@@ -185,7 +185,7 @@ public:
void setHideClosedAccounts(bool _bool) {
m_hideClosedAccounts = _bool;
}
- bool isHidingClosedAccounts(void) {
+ bool isHidingClosedAccounts(void) const {
return m_hideClosedAccounts;
}
--
1.7.1
--------------060703030708080806090607
Content-Type: text/x-diff;
name="0011-Remove-definition-of-non-virtual-functions-never-imp.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0011-Remove-definition-of-non-virtual-functions-never-imp.pa";
filename*1="tch"
More information about the KMyMoney-devel
mailing list