LGTM: [skip ci] fix: Declaration hides parameter

A local variable hides a parameter. This may be confusing. Consider renaming one of them.
This commit is contained in:
wmayer
2020-07-27 10:57:34 +02:00
parent a9f0b7703e
commit 45e0673645
23 changed files with 153 additions and 141 deletions

View File

@@ -1802,10 +1802,10 @@ void MainWindow::unsetUrlHandler(const QString &scheme)
d->urlHandler.remove(scheme);
}
void MainWindow::loadUrls(App::Document* doc, const QList<QUrl>& url)
void MainWindow::loadUrls(App::Document* doc, const QList<QUrl>& urls)
{
QStringList files;
for (QList<QUrl>::ConstIterator it = url.begin(); it != url.end(); ++it) {
for (QList<QUrl>::ConstIterator it = urls.begin(); it != urls.end(); ++it) {
QMap<QString, QPointer<UrlHandler> >::iterator jt = d->urlHandler.find(it->scheme());
if (jt != d->urlHandler.end() && !jt->isNull()) {
// delegate the loading to the url handler