From a6314cc53a59051a6c6d6d9c434f5a1c8b69d48b Mon Sep 17 00:00:00 2001 From: x7z4w Date: Fri, 24 Oct 2025 11:39:24 +0200 Subject: [PATCH] [core] Fix warning Signed-off-by: x7z4w --- libs/search/highlighting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/search/highlighting.cpp b/libs/search/highlighting.cpp index 3bed5d87d..40d4cc345 100644 --- a/libs/search/highlighting.cpp +++ b/libs/search/highlighting.cpp @@ -50,10 +50,10 @@ void HighlightResult(QueryTokens const & tokens, strings::UniString const & pref // Highlight Title (potentially including branch) std::string titleForHighlighting = res.GetString(); +#if defined(OMIM_OS_IPHONE) std::string const & branch = res.GetBranch(); // On iOS we append branch text to the title for highlighting if it's not already present. -#if defined(OMIM_OS_IPHONE) if (!branch.empty() && titleForHighlighting.find(branch) == std::string::npos) titleForHighlighting += " " + branch; #endif