diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-25 11:34:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-25 16:02:40 +0000 |
commit | aaa325725260a766c15aff8f462b1872aa76bc9d (patch) | |
tree | 728a0a42f4a68568c7c105a8f5bd613e153af964 /i18npool | |
parent | 6c82fea56781710f2b4bf13c67ca8b535c8e3c8d (diff) |
cppcheck: methods can be const
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/calendar/calendar_jewish.cxx | 12 |
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; } }; |