diff options
author | MÃ¥rten Nordheim <[email protected]> | 2023-03-10 14:49:52 +0100 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2023-03-19 07:42:50 +0100 |
commit | 6c00b495a67b8fc37d3456eb33fe5a645bcb2887 (patch) | |
tree | f2c9355db24aa9ff381ba0edb779716dc56bd4e8 | |
parent | dbf4d319f0def2ccd3c1473cc592ce902c33d5d9 (diff) |
Fix FTBFS with -qtnamespace
qtbase/src/corelib/kernel/qvariant.h(54): error C2888:
'const bool qIsRelocatable<qt::QVariant>': symbol cannot be defined within namespace 'qt'
Amends 0ca803a5d325f26f5e4e0fcab8b9c9a02f154336
Fixes: QTBUG-112016
Change-Id: I43b3f292fa85b6cda00f36da6c8aff65da4ed742
Reviewed-by: Volker Hilsheimer <[email protected]>
Reviewed-by: Marc Mutz <[email protected]>
(cherry picked from commit c0a732f984f407f7613805ff04b8a6d46c12f754)
-rw-r--r-- | src/corelib/kernel/qvariant.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h index 50b8dc24fb6..990a2a08848 100644 --- a/src/corelib/kernel/qvariant.h +++ b/src/corelib/kernel/qvariant.h @@ -51,7 +51,9 @@ class QVariant; template<typename T> inline T qvariant_cast(const QVariant &); -template<> constexpr inline bool QtPrivate::qIsRelocatable<QVariant> = true; +namespace QtPrivate { +template<> constexpr inline bool qIsRelocatable<QVariant> = true; +} class Q_CORE_EXPORT QVariant { struct CborValueStandIn { qint64 n; void *c; int t; }; |