From aaa325725260a766c15aff8f462b1872aa76bc9d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 25 Nov 2010 11:34:04 +0000 Subject: cppcheck: methods can be const --- i18npool/source/calendar/calendar_jewish.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'i18npool') 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; } }; -- cgit