From 2bf5a60bfa8b21c5939b87f0f556c728fa4d8c39 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Fri, 12 Nov 2021 11:52:34 +0100 Subject: [PATCH] Remove some spurious prefixes in declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The parameter-list of a method is already in its class's context, so doesn't need it made explicit on the other class members involved. Change-Id: I253b098ad1f2d2db80d49d8f484b7f95d14acec1 Reviewed-by: MÃ¥rten Nordheim Reviewed-by: Thiago Macieira Reviewed-by: Andrei Golubev --- src/corelib/time/qdatetime.cpp | 4 ++-- src/corelib/time/qdatetime_p.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/corelib/time/qdatetime.cpp b/src/corelib/time/qdatetime.cpp index a9bd59a156..9638c5b5e8 100644 --- a/src/corelib/time/qdatetime.cpp +++ b/src/corelib/time/qdatetime.cpp @@ -2848,7 +2848,7 @@ static int systemTimeYearMatching(int year) // Convert an MSecs Since Epoch into Local Time bool QDateTimePrivate::epochMSecsToLocalTime(qint64 msecs, QDate *localDate, QTime *localTime, - QDateTimePrivate::DaylightStatus *daylightStatus) + DaylightStatus *daylightStatus) { if (!millisInSystemRange(msecs)) { // Docs state any LocalTime after 2038-01-18 *will* have any DST applied. @@ -2891,7 +2891,7 @@ bool QDateTimePrivate::epochMSecsToLocalTime(qint64 msecs, QDate *localDate, QTi // DST status into a UTC epoch msecs. Optionally populate the returned // values from mktime for the adjusted local date and time. qint64 QDateTimePrivate::localMSecsToEpochMSecs(qint64 localMsecs, - QDateTimePrivate::DaylightStatus *daylightStatus, + DaylightStatus *daylightStatus, QDate *localDate, QTime *localTime, QString *abbreviation) { diff --git a/src/corelib/time/qdatetime_p.h b/src/corelib/time/qdatetime_p.h index f689a15cc8..1817d406bd 100644 --- a/src/corelib/time/qdatetime_p.h +++ b/src/corelib/time/qdatetime_p.h @@ -124,9 +124,9 @@ public: #endif // timezone static bool epochMSecsToLocalTime(qint64 msecs, QDate *localDate, QTime *localTime, - QDateTimePrivate::DaylightStatus *daylightStatus = nullptr); + DaylightStatus *daylightStatus = nullptr); static qint64 localMSecsToEpochMSecs(qint64 localMsecs, - QDateTimePrivate::DaylightStatus *daylightStatus, + DaylightStatus *daylightStatus, QDate *localDate = nullptr, QTime *localTime = nullptr, QString *abbreviation = nullptr);