From 2eca85031d0190f164ce2ae4dc13ee6b3b097989 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 15 Aug 2016 15:33:39 +0200 Subject: compat/options: qDebug() in singleton dtor This singleton is used around the codebase so make its lifetime clear to the developer. --- compat/options.cpp | 5 +++++ compat/options.hpp | 1 + 2 files changed, 6 insertions(+) (limited to 'compat') diff --git a/compat/options.cpp b/compat/options.cpp index db2e5ce5..32471870 100644 --- a/compat/options.cpp +++ b/compat/options.cpp @@ -233,6 +233,11 @@ opt_singleton::opt_singleton() : implsgl_mtx(QMutex::Recursive) { } +opt_singleton::~opt_singleton() +{ + qDebug() << "exit: bundle singleton"; +} + pbundle opt_singleton::bundle(const opt_singleton::k &key) { QMutexLocker l(&implsgl_mtx); diff --git a/compat/options.hpp b/compat/options.hpp index 454cc99a..07696b3c 100644 --- a/compat/options.hpp +++ b/compat/options.hpp @@ -142,6 +142,7 @@ namespace options { void after_profile_changed_(); public: opt_singleton(); + ~opt_singleton(); pbundle bundle(const k& key); void bundle_decf(const k& key); static void refresh_all_bundles(); -- cgit v1.2.3