diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-02-03 11:38:52 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2017-03-01 16:19:52 +0000 |
commit | 2b07b0bf4bb698225380269f2e6e95af81c88098 (patch) | |
tree | 7a54b11956533dd2c24d611d5fb87c8d336e4c0a /src/core/content_browser_client_qt.cpp | |
parent | edd8f2840d85e35bbec905440b0b524d7e0d108e (diff) |
Fix build when Qt Location is not present
In case if Qt Location is not present, the compiler tries to
instantiate a unique_ptr from a forward declared class, which fails
(specifically content::LocationProvider).
Fix is to include the header which contains the LocationProvider
class.
Change-Id: I4a398bc121883923257bb358ad7c76fc372bf8bb
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/content_browser_client_qt.cpp')
-rw-r--r-- | src/core/content_browser_client_qt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp index e305a4259..f031da904 100644 --- a/src/core/content_browser_client_qt.cpp +++ b/src/core/content_browser_client_qt.cpp @@ -81,6 +81,8 @@ #include "dev_tools_http_handler_delegate_qt.h" #ifdef QT_USE_POSITIONING #include "location_provider_qt.h" +#else +#include "device/geolocation/location_provider.h" #endif #include "media_capture_devices_dispatcher.h" #if defined(ENABLE_BASIC_PRINTING) |