summaryrefslogtreecommitdiffstats
path: root/src/corelib/serialization/qjsonobject.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-06-14 00:12:02 +0200
committerMarc Mutz <marc.mutz@qt.io>2025-06-18 16:47:25 +0000
commit522d505dd81834d22d366d0f36a26451dedafe11 (patch)
treeaf30aefce49895bc9b3d2007d983e6521acf0ee8 /src/corelib/serialization/qjsonobject.cpp
parent81e9adee48a72bcac3648a90f0646b777b852900 (diff)
QScopeGuard: add commit()
This method executes the wrapped function ahead of destruction, and can alleviate the need to hold QScopeGuards in optional<>s to emulate the functionality. Port such a case in tst_QEventLoop as demonstration. [ChangeLog][QtCore][QScopeGuard] Added commit() method. Change-Id: Ie2674e1c82e242bdeb1eeaf183607e5c71c1448a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/serialization/qjsonobject.cpp')
0 files changed, 0 insertions, 0 deletions