From 9a3199fec2673e591811a4775ec8a00073c9f433 Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Fri, 17 Jan 2025 14:41:53 +0100 Subject: [PATCH] qtformat_impl.h: do not include We intentionally include in the most low-level Qt header, so that all other headers could just assume that it is always available. In this case it is already available from qtconfiginclude.h, which is included from qtconfigmacros.h. Amends 20b6ebea84997ecd70d37640f68232c60cc7231f. Found in Qt 6.9 API review. Pick-to: 6.9 Change-Id: I430c7392b5237ec582708e3ae1170eabc7c3a402 Reviewed-by: Thiago Macieira --- src/corelib/io/qtformat_impl.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/corelib/io/qtformat_impl.h b/src/corelib/io/qtformat_impl.h index a18e03c601f..d9ab96a3b0f 100644 --- a/src/corelib/io/qtformat_impl.h +++ b/src/corelib/io/qtformat_impl.h @@ -12,10 +12,6 @@ #include #include -#if __has_include() -# include -#endif - // Users can disable std::format support in their // projects by using this definition. #if !defined(QT_NO_STD_FORMAT_SUPPORT) && defined(__cpp_lib_format) && __cpp_lib_format >= 202106L