db71d68699
Qt 6.7.0. qtwebengine is still building OBS-URL: https://build.opensuse.org/request/show/1164304 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt6/qt6-base?expand=0&rev=104
33 lines
994 B
Diff
33 lines
994 B
Diff
From a0439a7370df302e4a8f0402249b1aa2b1aeab4b Mon Sep 17 00:00:00 2001
|
|
From: Albert Astals Cid <aacid@kde.org>
|
|
Date: Wed, 3 Apr 2024 00:47:01 +0200
|
|
Subject: [PATCH] Use ifdef instead of if for __cpp_lib_span
|
|
|
|
Like the other times it's used in this file
|
|
|
|
This is causing compilation errors in projects that use -Werror=undef
|
|
|
|
Fixes: QTBUG-123937
|
|
Pick-to: 6.7
|
|
Change-Id: I0cdd2910755dc9079890011dd8dbc27a6e64793e
|
|
---
|
|
src/corelib/tools/qspan.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/corelib/tools/qspan.h b/src/corelib/tools/qspan.h
|
|
index c9de1005a7..d6ae2570ae 100644
|
|
--- a/src/corelib/tools/qspan.h
|
|
+++ b/src/corelib/tools/qspan.h
|
|
@@ -297,7 +297,7 @@ public:
|
|
: QSpanBase(il.begin(), il.size())
|
|
{}
|
|
|
|
-#if __cpp_lib_span
|
|
+#ifdef __cpp_lib_span
|
|
template <typename S, size_t N, if_qualification_conversion<S> = true>
|
|
Q_IMPLICIT constexpr QSpanBase(std::span<S, N> other) noexcept
|
|
: QSpanBase(other.data(), other.size())
|
|
--
|
|
2.44.0
|
|
|