Tracker: small refactor to FindPaths.

No functional change intended.

* Remove trailing / from Tracker, thanks Axel.
* put addOnPaths.CountStrings() in a variable.
This commit is contained in:
John Scipione 2014-06-29 16:21:43 -04:00
parent 03a7aaf926
commit 784d5bea5c

View File

@ -272,9 +272,10 @@ BDeskWindow::InitAddonsList(bool update)
}
BStringList addOnPaths;
BPathFinder::FindPaths(B_FIND_PATH_ADD_ONS_DIRECTORY, "Tracker/",
BPathFinder::FindPaths(B_FIND_PATH_ADD_ONS_DIRECTORY, "Tracker",
addOnPaths);
for (int32 i = 0; i < addOnPaths.CountStrings(); i++) {
int32 count = addOnPaths.CountStrings();
for (int32 i = 0; i < count; i++) {
LoadAddOnDir(BDirectory(addOnPaths.StringAt(i)), this,
fAddonsList);
}