[core] Fix warning

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-10-24 11:39:24 +02:00
parent 2820fbac46
commit a6314cc53a

View File

@@ -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