summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel/qsqldatabase.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2024-04-16 09:20:15 +0200
committerMarc Mutz <marc.mutz@qt.io>2024-05-16 17:12:14 +0200
commit672afb13ca5ffc3d95ee92fb71416c6d23f7feda (patch)
treeb176792b96d4d55c266f4fe99c4cc3e9a4e8417f /src/sql/kernel/qsqldatabase.cpp
parentbd01008bca729f2e935af739e2f8287633abde2b (diff)
QSignalSpy: make sig member const
Previously, the sig member was used to indicate successful construction of the QSignalSpy (incl. successful connection to the monitored signal), so it was set only after all other initialization had taken place, preventing it from being marked as const, which would indicate that accesses to it need not be protected by the mutex. Now that we have it, we can instead use the d_ptr's value to indicate success, and mark sig const. [ChangeLog][QtTest][Important Behavior Changes][QSignalSpy] The signal() method no longer necessarily returns an empty byte array when the connection failed. Use the existing isValid() method to determine whether a given QSignalSpy object listens to a valid signal on a valid object. Change-Id: Ia08fe3b383681f3f203cf1a121c0e1ce08ad268b Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: David Faure <david.faure@kdab.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/sql/kernel/qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions