]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMProjectsTree.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMProjectsTree.cpp
index 4e1722631bdbe0f956a7f170c6411838b6b2e604..7e00d95f991f1af25fe3df8f39f13fbed1dcbe50 100755 (executable)
@@ -86,7 +86,7 @@ bool modelCDMProjectsTree::CompareNodeItem(modelCDMProjectsTreeNode x, modelCDMP
 
   if(xType != yType)
   {
-    if(xType == DT_DIR)
+    if(xType == wxDIR_DIRS)
       returnValue = true;
     else
       returnValue = false;
@@ -109,7 +109,7 @@ void modelCDMProjectsTree::SetRoot(std::string path)
   }
 
   path = "/";
-  for (int i = 0; i < breadcrumbs.size()-1; i++)
+  for (int i = 0; i < (int)(breadcrumbs.size())-1; i++)
   {
     path += breadcrumbs[i] + "/";
   }
@@ -121,7 +121,7 @@ void modelCDMProjectsTree::SetRoot(std::string path)
 
   if(!projectFound)
   {
-    this->projectRoot = modelCDMProjectsTreeNode(path,name,DT_DIR,0);
+    this->projectRoot = modelCDMProjectsTreeNode(path,name,wxDIR_DIRS ,0);
   }else{
     std::cout << "already existing ";
   }