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