diff options
author | Andreas Holzammer <andreas.holzammer@kdab.com> | 2016-02-03 14:45:57 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@theqtcompany.com> | 2016-02-04 10:42:47 +0000 |
commit | eb59d8084af321d05b4ebdfb2c1e051dfdca0b62 (patch) | |
tree | a19a6bc2a099ba66cdb822666c88e112b970b9a7 | |
parent | ab47de291a0b0111d0ef956dc4c4599e2066602d (diff) |
Fix WEC7 buildv5.6.0-rc1
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 <lars.knoll@theqtcompany.com>
-rw-r--r-- | src/assistant/help/qhelpsearchindexwriter_clucene.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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]; |