diff options
Diffstat (limited to 'src/browser.cpp')
-rw-r--r-- | src/browser.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/browser.cpp b/src/browser.cpp index 488131e..61cd2c6 100644 --- a/src/browser.cpp +++ b/src/browser.cpp @@ -76,7 +76,7 @@ Browser::~Browser() if(m_bookmarks) m_bookmarks->save(); - for(auto *info : m_plugins) + for(auto *info : qAsConst(m_plugins)) delete info; qDeleteAll(m_windows); @@ -109,13 +109,13 @@ void Browser::loadProfiles(const QStringList &profilePaths) connect(profile, &WebProfile::downloadRequested, m_downloads.get(), &DownloadsWidget::addDownload); auto *interceptor = new UrlRequestInterceptor(profile, profile); - for(UrlFilter *filter : m_filters) { + for(UrlFilter *filter : qAsConst(m_filters)) { interceptor->addFilter(filter); } const auto headers = conf.value<QStringList>("filter.header").value_or(QStringList()); for(const QString &header : headers) { - const auto h = header.split(QLatin1Literal(":")); + const auto h = header.split(QLatin1String(":")); if(h.length() == 2) interceptor->addHttpHeader(h.at(0).toLatin1(), h.at(1).toLatin1()); } @@ -142,7 +142,7 @@ QPluginLoader *Browser::addPlugin(const QString &path) auto *info = new PluginInfo(loader); m_plugins.append(info); - for(MainWindow *window : m_windows) { + for(MainWindow *window : qAsConst(m_windows)) { addPluginTo(info, window); } @@ -259,7 +259,7 @@ MainWindow *Browser::createWindow() auto *window = new MainWindow(); connect(window->addressBar, &AddressBar::complete, m_bookmarks.get(), &BookmarksWidget::search); - for(auto *info : m_plugins) { + for(auto *info : qAsConst(m_plugins)) { addPluginTo(info, window); } |