diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-06-21 21:51:00 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-06-23 03:25:01 +0200 |
commit | d1b89671de70ac9ffca52337058e976d86a367c1 (patch) | |
tree | 1f05c818531c3a580b7554b19aac290b586241be /tests/auto/qtipc/qsharedmemory/qsharedmemory.pro | |
parent | 8bd532b1e54e220c81cd742fabaa236b1e7679c4 (diff) |
Sadly, inline namespaces are resulting in ambiguities. With two
declarations
QtJniTypes::android::io::File
and
QtJniTypes::org::qtproject::qt::android::QtWindow
referring to QtJniTypes::android already is ambiguous if `org`,
`qtproject`, and `qt` namespaces are all inline. This breaks the
idea behind Q_DECLARE_JNI_CLASS as a variadic macro that generates types
that we can transparently use as QtJniTypes.
So remove the inline keyword from the namespace declarations. The macro
might still be the way to go, but user code will to either fully qualify
the types, or use `using namespace QtJniTypes::java::lang` to use e.g.
the `String` type without ambiguities.
Types declared with the two-argument overload continue to live
directly in the QtJniTypes namespace anyway.
As a drive-by, break the excessively long lines.
Pick-to: 6.8
Change-Id: Ie9303e6c9117fb96b3cff31c7df4df92237b5520
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'tests/auto/qtipc/qsharedmemory/qsharedmemory.pro')
0 files changed, 0 insertions, 0 deletions