From 2b07b0bf4bb698225380269f2e6e95af81c88098 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 3 Feb 2017 11:38:52 +0100 Subject: 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 --- src/core/content_browser_client_qt.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core') 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) -- cgit v1.2.3