diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/browser.cpp | 4 | ||||
-rw-r--r-- | src/browser.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/browser.cpp b/src/browser.cpp index ff78d0d..6cdfdab 100644 --- a/src/browser.cpp +++ b/src/browser.cpp @@ -74,9 +74,9 @@ Configuration *Browser::getConfiguration() const return m_config.get(); } -const ProfileManager *Browser::getProfileManager() const +ProfileManager *Browser::getProfileManager() { - return const_cast<ProfileManager *>(ProfileManager::instance()); + return ProfileManager::instance(); } void Browser::registerPlugin(const Plugin &plugin) diff --git a/src/browser.h b/src/browser.h index 0547168..007b0a1 100644 --- a/src/browser.h +++ b/src/browser.h @@ -40,7 +40,7 @@ public: // interface Configuration *getConfiguration() const override; - const ProfileManager *getProfileManager() const override; + ProfileManager *getProfileManager() override; QPair<QString, WebProfile *> loadProfile(const QString &id) override; void setConfiguration(std::unique_ptr<Configuration> &config); |