]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMFolder.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMFolder.cpp
index 537e636759f79b919d5efde421cc4eb12dbbc0bd..bf9a951c63a90a0c277f884aece0d0d3ff112fce 100644 (file)
@@ -50,6 +50,7 @@ modelCDMFolder::modelCDMFolder(const std::string& path, const int& level)
   this->children.clear();
   this->level = level;
   this->CMakeLists = NULL;
+  this->length = 0;
 
   std::vector<std::string> words;
   std::string delimiters;
@@ -103,6 +104,8 @@ modelCDMFolder::modelCDMFolder(const std::string& path, const int& level)
 
 modelCDMFolder::~modelCDMFolder()
 {
+  this->folders.clear();
+  this->CMakeLists = NULL;
   for (int i = 0; i < this->children.size(); i++)
     {
       if(this->children[i] != NULL)
@@ -111,6 +114,7 @@ modelCDMFolder::~modelCDMFolder()
           this->children[i] = NULL;
         }
     }
+  this->children.clear();
 }
 
 bool modelCDMFolder::CreateFolder(const std::string& name, std::string*& result,
@@ -131,3 +135,10 @@ const bool modelCDMFolder::Refresh(std::string*& result)
   //TODO: implement method
   return true;
 }
+
+bool
+modelCDMFolder::HasCMakeLists()
+{
+  //TODO: implement method
+  return true;
+}