summaryrefslogtreecommitdiffstats
path: root/src/core/web_engine_library_info.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-04-03 18:25:42 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-04-04 08:18:59 +0000
commit03b20ee9c152414de89dbc28a5c8e3c98f66ae04 (patch)
treece85e68cc77309993d05cae1076f5c6275f48ef3 /src/core/web_engine_library_info.cpp
parentbfe8875e2119568786b1e98710d44f898313add4 (diff)
Fix spellcheck feature check
Was changed to generated buildflag headers instead of command line defines. Task-number: QTBUG-59687 Change-Id: Iead64f5321d000c07172ee27a0032394527ec501 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/web_engine_library_info.cpp')
-rw-r--r--src/core/web_engine_library_info.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/web_engine_library_info.cpp b/src/core/web_engine_library_info.cpp
index 40977812d..f46f8f425 100644
--- a/src/core/web_engine_library_info.cpp
+++ b/src/core/web_engine_library_info.cpp
@@ -43,6 +43,7 @@
#include "base/base_paths.h"
#include "base/command_line.h"
#include "base/files/file_util.h"
+#include "components/spellcheck/spellcheck_build_features.h"
#include "content/public/common/content_paths.h"
#include "ui/base/ui_base_paths.h"
#include "ui/base/ui_base_switches.h"
@@ -206,7 +207,7 @@ QString localesPath()
#endif
}
-#if defined(ENABLE_SPELLCHECK)
+#if BUILDFLAG(ENABLE_SPELLCHECK)
QString dictionariesPath()
{
static QString potentialDictionariesPath;
@@ -333,7 +334,7 @@ base::FilePath WebEngineLibraryInfo::getPath(int key)
return toFilePath(icuDataPath());
case ui::DIR_LOCALES:
return toFilePath(localesPath());
-#if defined(ENABLE_SPELLCHECK)
+#if BUILDFLAG(ENABLE_SPELLCHECK)
case base::DIR_APP_DICTIONARIES:
return toFilePath(dictionariesPath());
#endif