aboutsummaryrefslogtreecommitdiff
path: root/src/browser.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-04 19:42:46 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-04 19:42:46 +0200
commit5563bb3c94f9c001f95de44a5818d2f86631532b (patch)
tree2b9fe955e14b167c64251677533ee4d0f34006eb /src/browser.cpp
parentUpdate pkgbuild to use asciidoctor (diff)
downloadsmolbote-5563bb3c94f9c001f95de44a5818d2f86631532b.tar.xz
clazy: fix warnings
Diffstat (limited to 'src/browser.cpp')
-rw-r--r--src/browser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/browser.cpp b/src/browser.cpp
index 62fc729..7bf4adf 100644
--- a/src/browser.cpp
+++ b/src/browser.cpp
@@ -91,7 +91,7 @@ void Browser::registerPlugin(const Plugin &plugin)
}
}
-void Browser::setup(const QString &defaultProfile)
+void Browser::setup()
{
Q_ASSERT(m_config);
@@ -111,7 +111,7 @@ void Browser::setup(const QString &defaultProfile)
// cookie request filter
// load profiles
- m_profileManager = new ProfileManager(m_config->section("profile"), defaultProfile, this);
+ m_profileManager = new ProfileManager(m_config->section("profile"), this);
for(const QString &profilePath : Util::files(m_config->value<QString>("profile.path").value(), { "*.profile" })) {
this->loadProfile(profilePath);
}
@@ -171,7 +171,7 @@ void Browser::createSession(const QJsonObject &object)
if(tabs.isEmpty())
window->addTab(profile->newtab());
else {
- for(const QJsonValue &t : subwindow.value("tabs").toArray()) {
+ for(const auto &t : tabs) {
const QJsonObject tab = t.toObject();
const QUrl url = QUrl::fromUserInput(tab.value("url").toString());
WebProfile *p = m_profileManager->profile(tab.value("profile").toString());