diff options
author | Jüri Valdmann <juri.valdmann@qt.io> | 2019-02-05 15:06:11 +0100 |
---|---|---|
committer | Jüri Valdmann <juri.valdmann@qt.io> | 2019-02-11 14:08:44 +0000 |
commit | 358f1398dcb531e906dbb1412f06222c32d1a91f (patch) | |
tree | 8f75dada927f6a43081a728249f7e69b4f6333a3 /src/core/profile_adapter.cpp | |
parent | 60f16cae918adc96e5b01e8599b14a34b97902ef (diff) |
Fix -Wreorder warning in ProfileAdapter
.../profile_adapter.h: In constructor 'QtWebEngineCore::ProfileAdapter::ProfileAdapter(const QString&)':
.../profile_adapter.h:229:9: warning: 'QtWebEngineCore::ProfileAdapter::m_pageRequestInterceptors' will be initialized after [-Wreorder]
.../profile_adapter.h:219:13: warning: 'QString QtWebEngineCore::ProfileAdapter::m_downloadPath' [-Wreorder]
.../profile_adapter.cpp:79:1: warning: when initialized here [-Wreorder]
Change-Id: I3aff0462769abc484845ac0233ad892a4ec9bb0d
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/profile_adapter.cpp')
-rw-r--r-- | src/core/profile_adapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/profile_adapter.cpp b/src/core/profile_adapter.cpp index 48a6906e9..8ddeb5b8f 100644 --- a/src/core/profile_adapter.cpp +++ b/src/core/profile_adapter.cpp @@ -83,12 +83,12 @@ namespace QtWebEngineCore { ProfileAdapter::ProfileAdapter(const QString &storageName): m_name(storageName) , m_offTheRecord(storageName.isEmpty()) + , m_downloadPath(QStandardPaths::writableLocation(QStandardPaths::DownloadLocation)) , m_httpCacheType(DiskHttpCache) , m_persistentCookiesPolicy(AllowPersistentCookies) , m_visitedLinksPolicy(TrackVisitedLinksOnDisk) , m_httpCacheMaxSize(0) , m_pageRequestInterceptors(0) - , m_downloadPath(QStandardPaths::writableLocation(QStandardPaths::DownloadLocation)) { WebEngineContext::current()->addProfileAdapter(this); // creation of profile requires webengine context |