removeRedundantPaths doesn't remove duplicates


#1

removeRedundantPaths doesn’t remove duplicate paths. The following change fixes it.

[code]void FileSearchPath::removeRedundantPaths()
{
for (int i = directories.size(); --i >= 0;)
{
const File d1 (directories[i]);

    for (int j = directories.size(); --j >= 0;)
    {
        if ((i != j) && (d1.isAChildOf (File (directories[j])) || d1 == File (directories[j])))
        {
            directories.remove (i);
            break;
        }
    }
}

}[/code]


#2

Nice one. Thanks!


#3