use scoped connection to automatically disconect on deletion
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user