Xcos MVC: fix Diagrams's 'objs' property getter and setter
[scilab.git] / scilab / modules / scicos / src / cpp / model / Annotation.hxx
index 99cb8d4..5efd68f 100644 (file)
@@ -111,19 +111,19 @@ private:
         return SUCCESS;
     }
 
-    ScicosID getParentDiagram() const
+    void getParentDiagram(ScicosID& v) const
     {
-        return parentDiagram;
+        v = parentDiagram;
     }
 
-    update_status_t setParentDiagram(ScicosID parentDiagram)
+    update_status_t setParentDiagram(const ScicosID v)
     {
-        if (this->parentDiagram == parentDiagram)
+        if (v == parentDiagram)
         {
             return NO_CHANGES;
         }
 
-        this->parentDiagram = parentDiagram;
+        parentDiagram = v;
         return SUCCESS;
     }