Scicos: minor cleanup to re-use existing lock/unlock methods 17/17617/2
Clément DAVID [Mon, 4 Jan 2016 17:40:55 +0000 (18:40 +0100)]
Change-Id: Icfc343a87071f5e376c814f43e5525d90051b841

scilab/modules/scicos/src/cpp/Controller.cpp

index 7be73b8..204ad69 100644 (file)
@@ -73,8 +73,8 @@ Controller::SharedData::SharedData() :
     onModelStructuralModification(), model(),
     onViewsStructuralModification(), allNamedViews(), allViews()
 {
-    onModelStructuralModification.clear();
-    onViewsStructuralModification.clear();
+    unlock(&onModelStructuralModification);
+    unlock(&onViewsStructuralModification);
 }
 
 Controller::SharedData::~SharedData()