summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-25 11:34:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-25 16:02:40 +0000
commitaaa325725260a766c15aff8f462b1872aa76bc9d (patch)
tree728a0a42f4a68568c7c105a8f5bd613e153af964
parent6c82fea56781710f2b4bf13c67ca8b535c8e3c8d (diff)
cppcheck: methods can be const
-rw-r--r--i18npool/source/calendar/calendar_jewish.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/i18npool/source/calendar/calendar_jewish.cxx b/i18npool/source/calendar/calendar_jewish.cxx
index f7eb64061a1a..79f50ab9ff9c 100644
--- a/i18npool/source/calendar/calendar_jewish.cxx
+++ b/i18npool/source/calendar/calendar_jewish.cxx
@@ -192,9 +192,9 @@ public:
+ HebrewEpoch)); // Days elapsed before absolute date 1.
}
- sal_Int32 GetMonth() { return month; }
- sal_Int32 GetDay() { return day; }
- sal_Int32 GetYear() { return year; }
+ sal_Int32 GetMonth() const { return month; }
+ sal_Int32 GetDay() const { return day; }
+ sal_Int32 GetYear() const { return year; }
};
@@ -251,9 +251,9 @@ public:
+ (year - 1)/400); // ...plus prior years divisible by 400
}
- int GetMonth() { return month; }
- int GetDay() { return day; }
- int GetYear() { return year; }
+ int GetMonth() const { return month; }
+ int GetDay() const { return day; }
+ int GetYear() const { return year; }
};