diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2023-03-25 13:32:26 -0400 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-04-05 00:29:16 -0700 |
| commit | 2f226336a2aeb477b7ba339b6c3a63abb69746c3 (patch) | |
| tree | 4926f1dfa51e355f13707d0e5de682b398326193 /src/corelib/thread/qfutureinterface.cpp | |
| parent | a74059f2bd353cdaa97cd71581059c0b88282a1b (diff) | |
QPluginLoader: don't instantiante multiple, identical instances
This can happen if the same project has two or more Q_IMPORT_PLUGIN
macros in their source. And that can happen when converting from qmake-
based builds to CMake, as qmake didn't generate a source file with the
macro but CMake does.
[ChangeLog][QtCore][QPluginLoader] staticInstances() will not call
duplicated registrations of the same instantiation function, which can
only happen as a result of duplicated Q_IMPORT_PLUGIN for the same
plugin name.
Fixes: QTBUG-102745
Pick-to: 6.2 6.5
Change-Id: Idd5e1bb52be047d7b4fffffd174fb9dd62d8583d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/thread/qfutureinterface.cpp')
0 files changed, 0 insertions, 0 deletions
