modelCDMLib::modelCDMLib(const std::string& path, const std::string& name, const int& level)
{
+ std::cout << "creating lib\n";
this->type = wxDIR_DIRS;
this->name = name;
this->level = level;
}
}
this->SortChildren();
+ std::sort(this->libraries.begin(), this->libraries.end(), CompareNodeItem);
}
modelCDMLib::~modelCDMLib()
std::string libraryName = stdfileName;
//check if they already exist
bool found = false;
- for (int i = 0;!found && i < this->libraries.size(); i++)
+ for (int i = 0; !found && i < this->libraries.size(); i++)
{
if (this->libraries[i]->GetName() == libraryName)
{
else
{
bool found = false;
- for (int i = 0; i <!found && this->children.size(); i++)
+ for (int i = 0; !found && i < this->children.size(); i++)
{
if (this->children[i]->GetName() == stdfileName)
{
}
}
this->SortChildren();
+ std::sort(this->libraries.begin(), this->libraries.end(), CompareNodeItem);
return true;
}