From 28a74d178071c89dbdc53a193c1db68e0d10ddcb Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Sat, 11 Jun 2022 19:16:13 +0200 Subject: Use cmakedefine01 This way we get a build time warning if the var isn't defined at all, e.g. a missing check_include_files() CMake call. --- src/search/dolphinquery.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/search/dolphinquery.cpp') diff --git a/src/search/dolphinquery.cpp b/src/search/dolphinquery.cpp index 3c4758bd2..a86f127e0 100644 --- a/src/search/dolphinquery.cpp +++ b/src/search/dolphinquery.cpp @@ -9,12 +9,12 @@ #include #include -#ifdef HAVE_BALOO +#if HAVE_BALOO #include #endif namespace { -#ifdef HAVE_BALOO +#if HAVE_BALOO /** Checks if a given term in the Baloo::Query::searchString() is a special search term * @return: the specific search token of the term, or an empty QString() if none is found */ @@ -99,7 +99,7 @@ bool DolphinQuery::supportsScheme(const QString& urlScheme) void DolphinQuery::parseBalooQuery() { -#ifdef HAVE_BALOO +#if HAVE_BALOO const Baloo::Query query = Baloo::Query::fromSearchUrl(m_searchUrl); m_includeFolder = query.includeFolder(); -- cgit v1.3