]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMLib.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMLib.cpp
index 9ecaea45f3a39c495dd863f29bceba4ba4a3c8ca..236f7a311e6d57035ba7f4ebcfe85380be020d2b 100644 (file)
@@ -103,13 +103,14 @@ modelCDMLib::~modelCDMLib()
 {
 }
 
-modelCDMIProjectTreeNode* modelCDMLib::CreateLibrary(
+modelCDMLibrary* modelCDMLib::CreateLibrary(
     const std::string& name,
     std::string*& result,
     const std::string& path
 )
 {
   //copy template library folder with new name
+  //TODO: fix for windows
   std::string copyCommand = "cp -r " + this->path + "/template_lib " + this->path + "/" + name;
   if(system(copyCommand.c_str()))
     {
@@ -142,6 +143,7 @@ modelCDMIProjectTreeNode* modelCDMLib::CreateLibrary(
     }
 
   //add library to model
+  //TODO: fix for windows
   modelCDMLibrary* library = new modelCDMLibrary(this->path + "/" + name, this->level + 1);
   this->libraries.push_back(library);
   this->children.push_back(library);