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:
@@ -272,9 +272,10 @@ BDeskWindow::InitAddonsList(bool update)
|
|||||||
}
|
}
|
||||||
|
|
||||||
BStringList addOnPaths;
|
BStringList addOnPaths;
|
||||||
BPathFinder::FindPaths(B_FIND_PATH_ADD_ONS_DIRECTORY, "Tracker/",
|
BPathFinder::FindPaths(B_FIND_PATH_ADD_ONS_DIRECTORY, "Tracker",
|
||||||
addOnPaths);
|
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,
|
LoadAddOnDir(BDirectory(addOnPaths.StringAt(i)), this,
|
||||||
fAddonsList);
|
fAddonsList);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user