Skip to content

Commit

Permalink
use scoped connection to automatically disconect on deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Nov 1, 2017
1 parent 780d179 commit 7ea6b0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/ViewProviderDrawingView.h
Expand Up @@ -77,7 +77,7 @@ class TechDrawGuiExport ViewProviderDrawingView : public Gui::ViewProviderDocume
virtual TechDraw::DrawView* getViewObject() const;

void onGuiRepaint(const TechDraw::DrawView* dv);
typedef boost::signals::connection Connection;
typedef boost::signals::scoped_connection Connection;
Connection connectGuiRepaint;


Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/ViewProviderPage.h
Expand Up @@ -81,7 +81,7 @@ class TechDrawGuiExport ViewProviderPage : public Gui::ViewProviderDocumentObjec

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);
Expand Down

0 comments on commit 7ea6b0e

Please sign in to comment.