aboutsummaryrefslogtreecommitdiff
path: root/src/browser.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-07-01 18:13:01 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-07-01 18:13:01 +0200
commitaa8198eec380659fd3538e058b50c24b0f88743c (patch)
treeb9ae32ac4192de87054a8892d4e654a45737a04e /src/browser.h
parentAdd browser.locale and browser.translation (diff)
downloadsmolbote-aa8198eec380659fd3538e058b50c24b0f88743c.tar.xz
Code cleanup
Clean up MainWindow Configuration is now a std::unique_ptr Connect downloads and request interceptor to all profiles
Diffstat (limited to 'src/browser.h')
-rw-r--r--src/browser.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/browser.h b/src/browser.h
index 0fda721..3405e85 100644
--- a/src/browser.h
+++ b/src/browser.h
@@ -36,7 +36,7 @@ public slots:
void about();
public:
- void setConfiguration(std::shared_ptr<Configuration> &config);
+ void setConfiguration(std::unique_ptr<Configuration> &config);
void registerPlugin(const Plugin &plugin);
void setup(const QString &defaultProfile);
@@ -56,10 +56,10 @@ public slots:
private:
Q_DISABLE_COPY(Browser)
- std::shared_ptr<Configuration> m_config;
+ std::unique_ptr<Configuration> m_config;
std::shared_ptr<BookmarksWidget> m_bookmarks;
- std::shared_ptr<DownloadsWidget> m_downloads;
- std::shared_ptr<UrlRequestInterceptor> m_urlFilter;
+ std::unique_ptr<DownloadsWidget> m_downloads;
+ std::unique_ptr<UrlRequestInterceptor> m_urlFilter;
QVector<MainWindow *> m_windows;
QVector<Plugin> m_plugins;