From d5493d616f17db79f6b11cc96581bff8ba2ee6dd Mon Sep 17 00:00:00 2001 From: Tatiana Borisova Date: Mon, 27 May 2024 17:36:29 +0200 Subject: [PATCH] Put conditioned header under appropriate feature configuration - Add #if QT_CONFIG(mimetype) for qmimetype.h usage in removed_api.cpp Amends 5dbd6a44d81d6eb062878fbc0d14c19464308d21 Change-Id: I0ef3c07bba7c3df56cfd1551d8962ab2efc15651 Reviewed-by: Ivan Solovev Reviewed-by: Tasuku Suzuki --- src/corelib/compat/removed_api.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index 96905cd5f9..d6d527fe50 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -1040,12 +1040,14 @@ bool QJsonValue::operator!=(const QJsonValue &other) const #include "qline.h" // inlined API +#if QT_CONFIG(mimetype) #include "qmimetype.h" bool QMimeType::operator==(const QMimeType &other) const { return comparesEqual(*this, other); } +#endif // QT_CONFIG(mimetype) #include "qobject.h" #include "qnumeric.h"