diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2023-09-12 13:46:59 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-09-28 16:22:47 +0200 |
| commit | d374a98682c8f8e3601af8f643e5ad1baa383147 (patch) | |
| tree | 18ce1c0d274f0c996fff1c8935394cd4c6bda69e /src/qml/jsruntime/qv4sparsearray.cpp | |
| parent | 48907e942f85653e3e29f2a81666e5384ae2a78b (diff) | |
Simplify QML singleton type registration
We don't really care what kind of factory function you stick in there as
long as we can convert it to the relevant std::function.
This makes all of the registration functions templates. Templates are
only instantiated when used. Therefore we get faster compilation times.
Change-Id: Ib825657cb6e5bd82b23af3f8b384985029c306ca
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4sparsearray.cpp')
0 files changed, 0 insertions, 0 deletions
