mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 21:11:39 +00:00
Changed: Optimize sorting of files (instead of doing it several times for each directory, do it only once)
--HG-- branch : develop
This commit is contained in:
parent
eea09d8893
commit
6205b16fbf
1 changed files with 2 additions and 2 deletions
|
@ -858,6 +858,8 @@ string getname (dirent *de)
|
|||
void CPath::getPathContent (const string &path, bool recurse, bool wantDir, bool wantFile, vector<string> &result, class IProgressCallback *progressCallBack, bool showEverything)
|
||||
{
|
||||
getInstance()->_FileContainer.getPathContent(path, recurse, wantDir, wantFile, result, progressCallBack, showEverything);
|
||||
|
||||
sort(result.begin(), result.end());
|
||||
}
|
||||
|
||||
void CFileContainer::getPathContent (const string &path, bool recurse, bool wantDir, bool wantFile, vector<string> &result, class IProgressCallback *progressCallBack, bool showEverything)
|
||||
|
@ -960,8 +962,6 @@ void CFileContainer::getPathContent (const string &path, bool recurse, bool want
|
|||
progressCallBack->popCropedValues ();
|
||||
}
|
||||
}
|
||||
|
||||
sort(result.begin(), result.end());
|
||||
}
|
||||
|
||||
void CPath::removeAllAlternativeSearchPath ()
|
||||
|
|
Loading…
Reference in a new issue