Skip to content
Snippets Groups Projects
Commit 80212e15 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH: prevent multiple apparition of one unique application in the availble applciation

parent 9be10e49
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,13 @@ ApplicationRegistry::GetAvailableApplications()
{
availableApp.push_back((*k)->GetName());
}
// If the ITK_AUTOLOAD_PATH contains
// several times the same path, application will appears several
// times in the list.To be cleaner, we erase multiple
std::vector<std::string>::iterator it;
it = std::unique(availableApp.begin(), availableApp.end());
availableApp.resize( it - availableApp.begin() );
return availableApp;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment