summaryrefslogtreecommitdiffstats
path: root/src/core/browser_context_qt.cpp
diff options
context:
space:
mode:
authorJüri Valdmann <juri.valdmann@qt.io>2017-11-27 14:44:49 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-01-17 11:42:22 +0000
commit7d2666c14a2c3b7a48979035167e3ada311065c6 (patch)
tree58622bc5e5006258a09577f180b05a1e1058d05f /src/core/browser_context_qt.cpp
parentaa527a2e553bea0514bc088bfc09105703fe87ba (diff)
BrowserContextQt: Remove unnecessary scoped_refptr
Change-Id: Ie40f489dd574e70ebdec796490767f629d0cad69 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/browser_context_qt.cpp')
-rw-r--r--src/core/browser_context_qt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/browser_context_qt.cpp b/src/core/browser_context_qt.cpp
index dd0884edb..8cb55a8f0 100644
--- a/src/core/browser_context_qt.cpp
+++ b/src/core/browser_context_qt.cpp
@@ -77,7 +77,7 @@ BrowserContextQt::BrowserContextQt(BrowserContextAdapter *adapter)
{
PrefServiceFactory factory;
factory.set_user_prefs(m_prefStore);
- scoped_refptr<PrefRegistrySimple> registry(new PrefRegistrySimple());
+ PrefRegistrySimple *registry = new PrefRegistrySimple();
#if BUILDFLAG(ENABLE_SPELLCHECK)
// Initial spellcheck settings
@@ -87,7 +87,7 @@ BrowserContextQt::BrowserContextQt(BrowserContextAdapter *adapter)
registry->RegisterBooleanPref(spellcheck::prefs::kEnableSpellcheck, false);
registry->RegisterBooleanPref(spellcheck::prefs::kSpellCheckUseSpellingService, false);
#endif //ENABLE_SPELLCHECK
- m_prefService = factory.Create(std::move(registry.get()));
+ m_prefService = factory.Create(registry);
user_prefs::UserPrefs::Set(this, m_prefService.get());
}