Xcos MVC: implement clone / delete on the Model side
[scilab.git] / scilab / modules / scicos / src / cpp / view_scilab / StateAdapter.cpp
index 58c428a..ad4184e 100644 (file)
@@ -31,13 +31,10 @@ namespace
 
 template<> property<StateAdapter>::props_t property<StateAdapter>::fields = property<StateAdapter>::props_t();
 
-StateAdapter::StateAdapter(const StateAdapter& o) :
-    BaseAdapter<StateAdapter, org_scilab_modules_scicos::model::Diagram>(o) {}
-
-StateAdapter::StateAdapter(org_scilab_modules_scicos::model::Diagram* o) :
-    BaseAdapter<StateAdapter, org_scilab_modules_scicos::model::Diagram>(o)
+StateAdapter::StateAdapter(bool ownAdaptee, org_scilab_modules_scicos::model::Diagram* adaptee) :
+    BaseAdapter<StateAdapter, org_scilab_modules_scicos::model::Diagram>(ownAdaptee, adaptee)
 {
-    if (property<StateAdapter>::properties_has_not_been_set())
+    if (property<StateAdapter>::properties_have_not_been_set())
     {
         // FIXME: add some properties
     }