diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-20 11:32:51 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-20 11:32:51 +0200 |
commit | 89f974ad6e9f8b8c3d33e45d29f491f2209e3624 (patch) | |
tree | f8b9b905896df4a012cc32c037a25954e88f55c4 /options/connector.cpp | |
parent | 2742eebed2dd5db4dbf187504c95eca70aa624f2 (diff) |
options/{connector,base_value}: add missing dtor call. rename callees.
Diffstat (limited to 'options/connector.cpp')
-rw-r--r-- | options/connector.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/options/connector.cpp b/options/connector.cpp index 4ba532d4..f23db06d 100644 --- a/options/connector.cpp +++ b/options/connector.cpp @@ -6,12 +6,12 @@ namespace detail { connector::~connector() {} -void connector::on_bundle_destructed(const QString& name, const base_value* val) +void connector::on_value_destructed(const QString& name, const base_value* val) { QMutexLocker l(get_mtx()); auto it = connected_values.find(name); - if (it != connected_values.end()) + if (it != connected_values.cend()) { std::vector<const base_value*>& values = (*it).second; for (auto it = values.begin(); it != values.end(); ) @@ -25,7 +25,7 @@ void connector::on_bundle_destructed(const QString& name, const base_value* val) } } -void connector::on_bundle_created(const QString& name, const base_value* val) +void connector::on_value_created(const QString& name, const base_value* val) { QMutexLocker l(get_mtx()); auto it = connected_values.find(name); @@ -46,7 +46,7 @@ void connector::on_bundle_created(const QString& name, const base_value* val) void connector::notify_values(const QString& name) const { auto it = connected_values.find(name); - if (it != connected_values.end()) + if (it != connected_values.cend()) { for (const base_value* val : (*it).second) { |