X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMLib.cpp;h=57411ec64f340fc70288a41e9d364eb33904831c;hb=6a43a8cc1e5216f06e41799fbe154b2b1ef6d44b;hp=e09cf2d978b3a4bb693ce4d6fb6c2f7dd9ee07db;hpb=698d779d5af904401fa3640f9a2e1c9a3f4aad28;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMLib.cpp b/lib/creaDevManagerLib/modelCDMLib.cpp index e09cf2d..57411ec 100644 --- a/lib/creaDevManagerLib/modelCDMLib.cpp +++ b/lib/creaDevManagerLib/modelCDMLib.cpp @@ -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& 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& 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& 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);