[PATCH 05/23] kcalendarsystem: Fix method access.
Jon Severinsson
jon at severinsson.net
Fri Oct 12 15:13:40 UTC 2012
---
kdecore/date/kcalendarsystem.h | 19 +++----------------
kdecore/date/kcalendarsystemgregorian_p.h | 1 -
2 filer ändrade, 3 tillägg(+), 17 borttagningar(-)
diff --git a/kdecore/date/kcalendarsystem.h b/kdecore/date/kcalendarsystem.h
index ec74ae0..d4eef22 100644
--- a/kdecore/date/kcalendarsystem.h
+++ b/kdecore/date/kcalendarsystem.h
@@ -1556,7 +1556,6 @@ public:
virtual bool isProleptic() const = 0;
protected:
-
/**
* Internal method to convert a Julian Day number into the YMD values for
* this calendar system.
@@ -1659,21 +1658,10 @@ protected:
const KSharedConfig::Ptr config = KSharedConfig::Ptr(),
const KLocale *locale = 0);
+ KCalendarSystemPrivate * const d_ptr;
+
private:
- //Required for shared d-pointer as already private, remove in KDE5
- friend class KCalendarSystemCoptic;
- friend class KCalendarSystemEthiopian;
- friend class KCalendarSystemGregorian;
- friend class KCalendarSystemHebrew;
- friend class KCalendarSystemIndianNational;
- friend class KCalendarSystemIslamicCivil;
- friend class KCalendarSystemJalali;
- friend class KCalendarSystemJapanese;
- friend class KCalendarSystemJulian;
- friend class KCalendarSystemMinguo;
- friend class KCalendarSystemQDate;
- friend class KCalendarSystemThai;
- //Other friends that need access to protected/private functions
+ // Other classes that need access to protected/private functions
friend class KLocalizedDate;
friend class KLocalizedDatePrivate;
friend class KDateTimeParser;
@@ -1685,7 +1673,6 @@ private:
KCalendarEra era(const QString &eraName, int yearInEra) const;
Q_DISABLE_COPY(KCalendarSystem)
- KCalendarSystemPrivate * const d_ptr; // KDE5 make protected
Q_DECLARE_PRIVATE(KCalendarSystem)
};
diff --git a/kdecore/date/kcalendarsystemgregorian_p.h b/kdecore/date/kcalendarsystemgregorian_p.h
index c173ea9..2bc6a3b 100644
--- a/kdecore/date/kcalendarsystemgregorian_p.h
+++ b/kdecore/date/kcalendarsystemgregorian_p.h
@@ -80,7 +80,6 @@ protected:
const KLocale *locale = 0);
private:
- friend class KCalendarSystemIndianNational; // To allow access to julianDayToDate() and dateToJulianDay()
Q_DECLARE_PRIVATE(KCalendarSystemGregorian)
};
--
1.7.10.4
More information about the Kde-frameworks-devel
mailing list