Merge lp:~thomas-voss/dbus-cpp/ensure-Signal-for-void-dtor-is-exception-safe into lp:dbus-cpp

Proposed by Thomas Voß
Status: Merged
Approved by: Ricardo Salveti
Approved revision: 92
Merged at revision: 90
Proposed branch: lp:~thomas-voss/dbus-cpp/ensure-Signal-for-void-dtor-is-exception-safe
Merge into: lp:dbus-cpp
Diff against target: 48 lines (+17/-2)
3 files modified
CMakeLists.txt (+1/-1)
debian/changelog (+6/-0)
include/core/dbus/impl/signal.h (+10/-1)
To merge this branch: bzr merge lp:~thomas-voss/dbus-cpp/ensure-Signal-for-void-dtor-is-exception-safe
Reviewer Review Type Date Requested Status
Ricardo Salveti (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+241239@code.launchpad.net

Commit message

Ensure Signal<void>::~Signal is exception safe.

Description of the change

Ensure Signal<void>::~Signal is exception safe.

To post a comment you must log in.
91. By Thomas Voß

Update source code comment.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
92. By Thomas Voß

Ensure Signal<void>::~Signal is exception safe.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2014-11-05 07:40:35 +0000
3+++ CMakeLists.txt 2014-11-10 12:30:01 +0000
4@@ -62,7 +62,7 @@
5 ENDIF(CMAKE_BUILD_TYPE MATCHES [cC][oO][vV][eE][rR][aA][gG][eE])
6
7 set(DBUS_CPP_VERSION_MAJOR 4)
8-set(DBUS_CPP_VERSION_MINOR 2)
9+set(DBUS_CPP_VERSION_MINOR 3)
10 set(DBUS_CPP_VERSION_PATCH 0)
11
12 include(CTest)
13
14=== modified file 'debian/changelog'
15--- debian/changelog 2014-11-05 07:51:07 +0000
16+++ debian/changelog 2014-11-10 12:30:01 +0000
17@@ -1,3 +1,9 @@
18+dbus-cpp (4.3.0) UNRELEASED; urgency=medium
19+
20+ * Ensure Signal<void>::~Signal is exception safe.
21+
22+ -- Thomas Voss <thomas.voss@canonical.com> Mon, 10 Nov 2014 09:34:52 +0100
23+
24 dbus-cpp (4.2.0+15.04.20141105-0ubuntu1) vivid; urgency=medium
25
26 [ Thomas Voss ]
27
28=== modified file 'include/core/dbus/impl/signal.h'
29--- include/core/dbus/impl/signal.h 2014-11-04 21:48:24 +0000
30+++ include/core/dbus/impl/signal.h 2014-11-10 12:30:01 +0000
31@@ -32,7 +32,16 @@
32 signal_about_to_be_destroyed();
33
34 parent->signal_router.uninstall_route(Object::SignalKey{interface, name});
35- parent->remove_match(rule);
36+ try
37+ {
38+ parent->remove_match(rule);
39+ }
40+ catch (...)
41+ {
42+ // Intentionally left empty as we do not care about the match rule
43+ // not being removed at this point. There is hardly anything we can
44+ // do and just assume correct state.
45+ }
46 }
47
48 template<typename SignalDescription, typename Argument>

Subscribers

People subscribed via source and target branches