summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-20 18:06:24 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-20 18:06:33 +0200
commitb947e4a4ae0e06633b114dd59d447973fc5aaa56 (patch)
tree7933c169ed263f30ef0389f2059da14e3c5ad933 /logic
parent39e209983bd1f04fb0beefef754d7430c8b7fb9f (diff)
options/scoped: use raii
Diffstat (limited to 'logic')
-rw-r--r--logic/runtime-libraries.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/logic/runtime-libraries.cpp b/logic/runtime-libraries.cpp
index eb5f02cc..a04da6a2 100644
--- a/logic/runtime-libraries.cpp
+++ b/logic/runtime-libraries.cpp
@@ -10,9 +10,7 @@ runtime_libraries::runtime_libraries(QFrame* frame, dylibptr t, dylibptr p, dyli
{
using namespace options;
- const bool prev_teardown_flag = opts::is_tracker_teardown();
-
- opts::set_teardown_flag(true);
+ with_tracker_teardown sentinel;
pProtocol = make_dylib_instance<IProtocol>(p);
@@ -42,6 +40,6 @@ runtime_libraries::runtime_libraries(QFrame* frame, dylibptr t, dylibptr p, dyli
correct = true;
end:
- opts::set_teardown_flag(prev_teardown_flag);
+ (void)0;
}