From 47cb350d8febf7837b0a7b3cf0eca0036b75a0cb Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Wed, 23 Sep 2020 14:21:30 +0200 Subject: [PATCH] Standardize #include order and form in qdatetime.cpp There were duplicates; there was neither rhyme nor reason to the order. One was conditioned on a deprecated old define. Change-Id: Iba390f4a83758418379fb5fc522f08ada3e41d12 Reviewed-by: Thiago Macieira Reviewed-by: Andrei Golubev --- src/corelib/time/qdatetime.cpp | 36 +++++++++++++++------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/src/corelib/time/qdatetime.cpp b/src/corelib/time/qdatetime.cpp index ea8fc53a08..62df269785 100644 --- a/src/corelib/time/qdatetime.cpp +++ b/src/corelib/time/qdatetime.cpp @@ -39,39 +39,35 @@ ****************************************************************************/ #include "qplatformdefs.h" +#include "qdatetime.h" + +#include "qcalendar.h" +#include "qdatastream.h" +#include "qdebug.h" +#include "qset.h" +#include "qlocale.h" + #include "private/qdatetime_p.h" #if QT_CONFIG(datetimeparser) #include "private/qdatetimeparser_p.h" #endif - -#include "qdatastream.h" -#include "qset.h" -#include "qlocale.h" -#include "qdatetime.h" -#if QT_CONFIG(timezone) -#include "qtimezoneprivate_p.h" +#ifdef Q_OS_DARWIN +#include "private/qcore_mac_p.h" #endif -#include "qdebug.h" -#ifndef Q_OS_WIN -#include +#include "private/qgregoriancalendar_p.h" +#if QT_CONFIG(timezone) +#include "private/qtimezoneprivate_p.h" #endif #include -#ifdef Q_CC_MINGW -# include // Define _POSIX_THREAD_SAFE_FUNCTIONS to obtain localtime_r() -#endif -#include #ifdef Q_OS_WIN # include #endif - -#if defined(Q_OS_MAC) -#include +#include +#ifdef Q_CC_MINGW +# include // Define _POSIX_THREAD_SAFE_FUNCTIONS to obtain localtime_r() #endif -#include "qcalendar.h" -#include "qgregoriancalendar_p.h" - QT_BEGIN_NAMESPACE /*****************************************************************************