From eb59d8084af321d05b4ebdfb2c1e051dfdca0b62 Mon Sep 17 00:00:00 2001 From: Andreas Holzammer Date: Wed, 3 Feb 2016 14:45:57 +0100 Subject: Fix WEC7 build lower_bound does require some additionally operators in order to pass lower_bound static checks. Task-number: QTBUG-50856 Change-Id: I363bb57014b8d76feea131205ed4fd32e3504197 Reviewed-by: Lars Knoll --- src/assistant/help/qhelpsearchindexwriter_clucene.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/assistant/help/qhelpsearchindexwriter_clucene.cpp b/src/assistant/help/qhelpsearchindexwriter_clucene.cpp index 96d46e0a4..f2a757f2e 100644 --- a/src/assistant/help/qhelpsearchindexwriter_clucene.cpp +++ b/src/assistant/help/qhelpsearchindexwriter_clucene.cpp @@ -331,6 +331,16 @@ static bool operator<(const QTextHtmlEntity &entity, const QString &entityStr) return QLatin1String(entity.name) < entityStr; } +static bool operator<(const QString &entityStr, const QTextHtmlEntity &entity) +{ + return entityStr < QLatin1String(entity.name); +} + +static bool operator<(const QTextHtmlEntity &entity, const QTextHtmlEntity &entity2) +{ + return QLatin1String(entity.name) < QLatin1String(entity2.name); +} + static QChar resolveEntity(const QString &entity) { const QTextHtmlEntity *start = &entities[0]; -- cgit v1.2.3