diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-04-30 14:22:39 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-05-17 00:34:06 +0200 |
commit | f6e89e901ba718d64b50f79f3b1b327a7f6a0211 (patch) | |
tree | 5a4c7752642f28dd1102fbb74cd83b0856b9115b /tests/auto/corelib/kernel/qjnitypes/tst_qjnitypes.cpp | |
parent | 18a16533b9c8782c5ff642a37dd58f82c1eb881d (diff) |
Fold methods for object return type into generic methods
Since we know at compile time whether the return type is an object type,
we can use 'if constexpr' and auto return type in the call(Static)Method
and get(Static)Field functions to call the object-type methods.
This makes the object-methods conceptually obsolete, but don't declare
them as deprecated as long as they are still used in submodules to avoid
warning floods and build failures in -Werror configurations.
Change-Id: Ic3019ed990a9252eefcb02cdb355f8a6ed6bc2ff
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'tests/auto/corelib/kernel/qjnitypes/tst_qjnitypes.cpp')
0 files changed, 0 insertions, 0 deletions