diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-24 10:09:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-24 10:35:44 +0000 |
commit | 70b09d932225027d531c9a95317320174f8ad687 (patch) | |
tree | ec36c7d4927721c59d22830385517770e820d98b /i18npool/source/calendar | |
parent | coverity#1326190 Explicit null dereferenced (diff) | |
download | core-70b09d932225027d531c9a95317320174f8ad687.tar.gz core-70b09d932225027d531c9a95317320174f8ad687.zip |
cppcheck: noExplicitConstructor
Change-Id: I1934441858baeeb41a46f694dbcef2d846b308b7
Diffstat (limited to 'i18npool/source/calendar')
-rw-r--r-- | i18npool/source/calendar/calendar_jewish.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/calendar/calendar_jewish.cxx b/i18npool/source/calendar/calendar_jewish.cxx index 3073c37497ef..19b62d3229e5 100644 --- a/i18npool/source/calendar/calendar_jewish.cxx +++ b/i18npool/source/calendar/calendar_jewish.cxx @@ -136,7 +136,7 @@ private: public: HebrewDate(sal_Int32 m, sal_Int32 d, sal_Int32 y) { month = m; day = d; year = y; } - HebrewDate(sal_Int32 d) { // Computes the Hebrew date from the absolute date. + explicit HebrewDate(sal_Int32 d) { // Computes the Hebrew date from the absolute date. year = (d + HebrewEpoch) / 366; // Approximation from below. // Search forward for year from the approximation. while (d >= HebrewDate(7,1,year + 1)) @@ -214,7 +214,7 @@ private: public: GregorianDate(int m, int d, int y) { month = m; day = d; year = y; } - GregorianDate(int d) { // Computes the Gregorian date from the absolute date. + explicit GregorianDate(int d) { // Computes the Gregorian date from the absolute date. // Search forward year by year from approximate year year = d/366; while (d >= GregorianDate(1,1,year+1)) |