]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMLib.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMLib.cpp
index e09cf2d978b3a4bb693ce4d6fb6c2f7dd9ee07db..57411ec64f340fc70288a41e9d364eb33904831c 100644 (file)
@@ -193,7 +193,7 @@ const bool modelCDMLib::Refresh(std::string*& result)
               std::string libraryName = stdfileName;
               //check if library already exist
               bool found = false;
-              for (int i = 0; !found && i < this->libraries.size(); i++)
+              for (int i = 0; !found && i < (int)(this->libraries.size()); i++)
                 {
                   if (this->libraries[i]->GetName() == libraryName)
                     {
@@ -216,7 +216,7 @@ const bool modelCDMLib::Refresh(std::string*& result)
             {
               //check if folder already exist
               bool found = false;
-              for (int i = 0; !found && i < this->children.size(); i++)
+              for (int i = 0; !found && i < (int)(this->children.size()); i++)
                 {
                   if (this->children[i]->GetName() == stdfileName)
                     {
@@ -260,7 +260,7 @@ const bool modelCDMLib::Refresh(std::string*& result)
           else
             {
               bool found = false;
-              for (int i = 0; !found && i < this->children.size(); i++)
+              for (int i = 0; !found && i < (int)(this->children.size()); i++)
                 {
                   if (this->children[i]->GetName() == stdfileName)
                     {
@@ -282,7 +282,7 @@ const bool modelCDMLib::Refresh(std::string*& result)
         }
     }
 
-  for (int i = 0; i < checkedLibraries.size(); i++)
+  for (int i = 0; i < (int)(checkedLibraries.size()); i++)
     {
       if(!checkedLibraries[i])
         {
@@ -291,7 +291,7 @@ const bool modelCDMLib::Refresh(std::string*& result)
           i--;
         }
     }
-  for (int i = 0; i < checked.size(); i++)
+  for (int i = 0; i < (int)(checked.size()); i++)
     {
       if(!checked[i])
         {
@@ -312,7 +312,7 @@ void modelCDMLib::CheckStructure(std::map<std::string, bool>& properties)
   if(this->CMakeLists != NULL)
     {
       //set properties parameters based on model
-      for (int i = 0; i < this->libraries.size(); i++)
+      for (int i = 0; i < (int)(this->libraries.size()); i++)
         properties["lib add " + libraries[i]->GetName()] = false;
 
       //open cmakelists
@@ -334,7 +334,7 @@ void modelCDMLib::CheckStructure(std::map<std::string, bool>& properties)
                 {
                   word = words[0];
                   CDMUtilities::splitter::split(words, word, " ", CDMUtilities::splitter::empties_ok);
-                  for (int i = 0; i < words.size(); i++)
+                  for (int i = 0; i < (int)(words.size()); i++)
                     {
                       if(words[i].substr(0,2) == "//")
                         break;
@@ -372,7 +372,7 @@ void modelCDMLib::CheckStructure(std::map<std::string, bool>& properties)
     }
 
   //check libraries' structure
-  for (int i = 0; i < this->libraries.size(); i++)
+  for (int i = 0; i < (int)(this->libraries.size()); i++)
     {
       properties["library " + this->libraries[i]->GetName()] = true;
       this->libraries[i]->CheckStructure(properties);