Introduce a simple scope guard helper AkScopeGuard
ClosedPublic

Authored by dvratil on May 28 2019, 10:46 AM.

Diff Detail

Repository
R165 Akonadi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dvratil created this revision.May 28 2019, 10:46 AM
Restricted Application added a project: KDE PIM. · View Herald TranscriptMay 28 2019, 10:46 AM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
dvratil requested review of this revision.May 28 2019, 10:46 AM

How does this relate to QScopeGuard?

This is basically a QScopedGuard :) We just don't depend on Qt 5.12 yet. Probably a typdef is in order when QT_VERSION>=5.12

vkrause accepted this revision.May 30 2019, 11:16 AM

ah, right, didn't remember QScopeGuard was that new

This revision is now accepted and ready to land.May 30 2019, 11:16 AM
This revision was automatically updated to reflect the committed changes.