diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-04-18 11:46:33 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-04-25 10:39:48 -0700 |
commit | 7854be01eb94d5c72e0a59628e76ed9f0bb0ca7a (patch) | |
tree | c7f99b2a604eded88a9b7fd2dcfa3b2e46501a97 /src/qml/qml/qqmlpropertycache_p.h | |
parent | aa9a475734487c7cc59deeff327adc1cf4148925 (diff) |
Fix build: de-inline QQmlImportDatabase::setPluginPaths
The qCDebug in this function was causing a build error in
qtlocation/src/plugins/geoservices/nokia. This fixes the build.
GCC 11:
qqmlimport_p.h:330:54: error: no match for ‘operator<<’ (operand types are ‘QDebug’ and ‘const QStringList’ {aka ‘const QList<QString>’})
[...]
qdebug.h:255:53: note: candidate: ‘template<class T> QDebugIfHasDebugStreamContainer<QList<T>, T> operator<<(QDebug, const QList<T>&)’
qdebug.h:255:53: note: template argument deduction/substitution failed:
/usr/include/c++/11/type_traits: In substitution of ?template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = QDebug]?:
Clang 14:
qqmlimport_p.h:330:54: error: invalid operands to binary expression ('QDebug' and 'const QStringList' (aka 'const QList<QString>'))
[...]
qdebug.h:255:53: note: candidate template ignored: requirement 'std::conjunction_v<std::disjunction<std::is_base_of<QList<QString>, QString>, QTypeTraits::has_ostream_operator<QDebug, QString, void>>>' was not satisfied [with T = QString]
Clearly both compilers think QTypeTraits::has_ostream_operator<QDebug,
QString, void> is a std::false_type. Why that is, I have no clue,
especially since qtdeclarative and a lot of other content using
qqmlimport_p.h compiled fine. But this is not a compiler error.
Change-Id: If05aeeb7176e4f13af9afffd16e7120332e097b1
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlpropertycache_p.h')
0 files changed, 0 insertions, 0 deletions