use scoped connection to automatically disconect on deletion

This commit is contained in:
wmayer
2017-11-01 14:13:57 +01:00
parent 780d1791f3
commit 7ea6b0e19e
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ public:
virtual TechDraw::DrawView* getViewObject() const;
void onGuiRepaint(const TechDraw::DrawView* dv);
typedef boost::signals::connection Connection;
typedef boost::signals::scoped_connection Connection;
Connection connectGuiRepaint;