summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/assistant/help/qhelpsearchindexwriter_clucene.cpp10
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];