broulik added a comment.
Can't really comment on this, though. While I'm a huge fan of RAII you don't seem to be returning early from that function, can't you just set the value and set it back at the end without this new class? REVISION DETAIL https://phabricator.kde.org/D3091 EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: kfunk, #frameworks, brauch Cc: broulik
