summaryrefslogtreecommitdiffstats
path: root/src/core/browser_context_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/browser_context_qt.cpp')
-rw-r--r--src/core/browser_context_qt.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/browser_context_qt.cpp b/src/core/browser_context_qt.cpp
index 8cb55a8f0..8b8fbf69e 100644
--- a/src/core/browser_context_qt.cpp
+++ b/src/core/browser_context_qt.cpp
@@ -72,11 +72,10 @@
namespace QtWebEngineCore {
BrowserContextQt::BrowserContextQt(BrowserContextAdapter *adapter)
- : m_adapter(adapter),
- m_prefStore(new InMemoryPrefStore())
+ : m_adapter(adapter)
{
PrefServiceFactory factory;
- factory.set_user_prefs(m_prefStore);
+ factory.set_user_prefs(new InMemoryPrefStore);
PrefRegistrySimple *registry = new PrefRegistrySimple();
#if BUILDFLAG(ENABLE_SPELLCHECK)