Bug 1317954 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11 in xpcom/. r=froydnj

MozReview-Commit-ID: 9mKXvXyYa6U
This commit is contained in:
Andi-Bogdan Postelnicu
2016-11-16 14:24:21 +02:00
parent effec2f0fc
commit f07543df49
3 changed files with 17 additions and 19 deletions

View File

@@ -1557,8 +1557,8 @@ nsLocalFile::IsExecutable(bool* aResult)
"jar" // java application bundle
};
nsDependentSubstring ext = Substring(path, dotIdx + 1);
for (size_t i = 0; i < ArrayLength(executableExts); i++) {
if (ext.EqualsASCII(executableExts[i])) {
for (auto executableExt : executableExts) {
if (ext.EqualsASCII(executableExt)) {
// Found a match. Set result and quit.
*aResult = true;
return NS_OK;