Merge pull request #12561 from Snuffleupagus/static-analyzer-warnings

Fix some static static analyzer warnings (issue 11965)
This commit is contained in:
Tim van der Meij 2020-11-01 14:46:20 +01:00 committed by GitHub
commit 47b3b39a88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 5 deletions

View File

@ -120,7 +120,7 @@ function readFontDictData(aString, aMap) {
var fontDictDataTokens = [];
var count = aString.length;
for (var i = 0; i < count; i) {
for (var i = 0; i < count; ) {
var value = aString[i++] | 0;
var token = null;

View File

@ -418,7 +418,7 @@ class ChromeExternalServices extends DefaultExternalServices {
}
static createDownloadManager(options) {
return new DownloadManager(options);
return new DownloadManager();
}
static createPreferences() {

View File

@ -381,7 +381,6 @@ var Stepper = (function StepperClosure() {
line.appendChild(c("td", JSON.stringify(simplifyArgs(decArgs))));
}
if (operatorsToDisplay < operatorList.fnArray.length) {
line = c("tr");
var lastCell = c("td", "...");
lastCell.colspan = 4;
chunk.appendChild(lastCell);

View File

@ -347,7 +347,7 @@ class FirefoxExternalServices extends DefaultExternalServices {
}
static createDownloadManager(options) {
return new DownloadManager(options);
return new DownloadManager();
}
static createPreferences() {

View File

@ -39,7 +39,7 @@ class GenericPreferences extends BasePreferences {
class GenericExternalServices extends DefaultExternalServices {
static createDownloadManager(options) {
return new DownloadManager(options);
return new DownloadManager();
}
static createPreferences() {