summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers/ibase/qsql_ibase.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-07-03 08:05:03 +0200
committerMarc Mutz <marc.mutz@qt.io>2023-07-04 18:29:36 +0000
commit3748b194d4de790540aa74db8d65b602e097f415 (patch)
tree5516f7b4dfdc2516cfce62014c3267f1957f5373 /src/plugins/sqldrivers/ibase/qsql_ibase.cpp
parentd18a9dd977a59bf735ed3b6a19e101d4b26a1cef (diff)
QEventLoopLocker: defend against nullptr arguments
The class would previosuly produce a crash when the QEventLoop* or the QThread* were nullptr or if no QCoreApplication existed. We want, however, the out-of-line constructors of the class to be noexcept, and for that, they should neither allocation nor have preconditions. The former is for another patch; this patch deals with the latter. [ChangeLog][QtCore][QEventLoopLocker] Is now a no-op on nullptr QEventLoop*, QThread*, QCoreApplication::instance() (was: crash). Task-number: QTBUG-114793 Pick-to: 6.6 Change-Id: I4246f74008df6ad7fcbfde56403397b065fbe861 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers/ibase/qsql_ibase.cpp')
0 files changed, 0 insertions, 0 deletions