summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-05-14 10:52:37 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-21 02:15:10 +0200
commit77982c482323116c59949147291fe4f8ac901f5d (patch)
tree2219212bb348996bd2f99cb387237e6151c4099f /bin
parentaefa611f0ceac2a945cc7df15683c5072e21153f (diff)
qscopedvaluerollback: add convenience constructor
It's a common need to assign a variable to something when entering a code block, and then revert it upon exit. qscopedvaluerollback can be used for this. But as a convenience, this patch adds an extra constructor so that you can "protect" and set a variable in one go instead of using two lines. Change-Id: If4b89d3a5ba32ef2304bda058b1b6050932612ed Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions