From 657e13760365aad3ab358b237060bf2356fc4a80 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 22 Jun 2018 19:37:31 +0200 Subject: clang-format pass --- src/browser.cpp | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'src/browser.cpp') diff --git a/src/browser.cpp b/src/browser.cpp index f2c7314..e26dbc8 100644 --- a/src/browser.cpp +++ b/src/browser.cpp @@ -11,18 +11,18 @@ #include "mainwindow/mainwindow.h" #include "mainwindow/subwindow.h" #include "webengine/urlinterceptor.h" -#include #include -#include -#include -#include -#include #include #include #include -#include #include +#include #include +#include +#include +#include +#include +#include Browser::Browser(int &argc, char *argv[]) : SingleApplication(argc, argv) @@ -38,8 +38,7 @@ Browser::~Browser() m_bookmarks->save(); qDeleteAll(m_windows); - m_windows.clear(); - + m_windows.clear(); } void Browser::about() @@ -84,7 +83,7 @@ void Browser::setup(const QString &defaultProfile) const QDir profilesDir(m_config->value("profile.path").value()); if(profilesDir.exists()) { - const auto entries = profilesDir.entryInfoList({"*.profile"}, QDir::Files | QDir::Readable, QDir::Time); + const auto entries = profilesDir.entryInfoList({ "*.profile" }, QDir::Files | QDir::Readable, QDir::Time); for(const QFileInfo &f : entries) { auto name = f.baseName(); @@ -125,9 +124,6 @@ void Browser::setup(const QString &defaultProfile) // downloads m_downloads = std::make_shared(QString::fromStdString(m_config->value("downloads.path").value())); connect(WebProfile::defaultProfile(), &WebProfile::downloadRequested, m_downloads.get(), &DownloadsWidget::addDownload); - - - } WebProfile *Browser::profile(const QString &name) const @@ -146,7 +142,7 @@ void Browser::createSession(const QString &profileName, bool newWindow, const QS auto *mainwindow = m_windows.last(); if(newWindow) { - QString firstUrl;// = WebProfile::defaultProfile()->homepage(); + QString firstUrl; // = WebProfile::defaultProfile()->homepage(); if(!urls.isEmpty()) firstUrl = urls.at(0); auto *w = mainwindow->createSubWindow(firstUrl); -- cgit v1.2.1