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;

View File

@@ -81,7 +81,7 @@ public:
TechDraw::DrawPage* getDrawPage() const;
void onGuiRepaint(const TechDraw::DrawPage* dp);
typedef boost::signals::connection Connection;
typedef boost::signals::scoped_connection Connection;
Connection connectGuiRepaint;
void unsetEdit(int ModNum);