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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user