cppcheck: methods can be const

This commit is contained in:
Caolán McNamara 2010-11-25 11:34:04 +00:00
parent 6c82fea567
commit aaa3257252

View file

@ -192,9 +192,9 @@ public:
+ HebrewEpoch)); // Days elapsed before absolute date 1. + HebrewEpoch)); // Days elapsed before absolute date 1.
} }
sal_Int32 GetMonth() { return month; } sal_Int32 GetMonth() const { return month; }
sal_Int32 GetDay() { return day; } sal_Int32 GetDay() const { return day; }
sal_Int32 GetYear() { return year; } sal_Int32 GetYear() const { return year; }
}; };
@ -251,9 +251,9 @@ public:
+ (year - 1)/400); // ...plus prior years divisible by 400 + (year - 1)/400); // ...plus prior years divisible by 400
} }
int GetMonth() { return month; } int GetMonth() const { return month; }
int GetDay() { return day; } int GetDay() const { return day; }
int GetYear() { return year; } int GetYear() const { return year; }
}; };