Xcos MVC: use ScicosID() instead of 0
[scilab.git] / scilab / modules / scicos / src / cpp / Model.cpp
index f81eaaa..33d9e3c 100644 (file)
@@ -71,6 +71,8 @@ ScicosID Model::createObject(kind_t k)
         case PORT:
             o = new model::Port();
             break;
+        default:
+            return ScicosID();
     }
 
     /*