diff options
author | Topi Reinio <topi.reinio@qt.io> | 2020-09-26 20:34:32 +0200 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2020-09-28 13:19:18 +0200 |
commit | fe43e6779ea1a6f64869fedc0a0880e89e01bfaa (patch) | |
tree | 37ae9aa93cdd97213cfcc44f4633d4c04a80b9f3 | |
parent | 79aff793613f031b5757c3e1e6f176436c4a532f (diff) |
qdoc: DocBook generator: Remove code for encoding special characters
QXmlStreamWriter already handles this for us.
Fixes: QTBUG-86988
Change-Id: I6aafbf880e79fc4e0a7600f272ae298929577da8
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit 89fccddc379dd009327cb4118f786040685b1b63)
-rw-r--r-- | src/qdoc/docbookgenerator.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/qdoc/docbookgenerator.cpp b/src/qdoc/docbookgenerator.cpp index df571eff5..b9c85d265 100644 --- a/src/qdoc/docbookgenerator.cpp +++ b/src/qdoc/docbookgenerator.cpp @@ -3062,29 +3062,8 @@ void DocBookGenerator::typified(const QString &string, const Node *relative, boo } pendingWord.clear(); - switch (ch.unicode()) { - case '\0': - break; - // This only breaks out of the switch, not the loop. This means that the loop - // deliberately overshoots by one character. - case '&': - result += QLatin1String("&"); - break; - case '<': - result += QLatin1String("<"); - break; - case '>': - result += QLatin1String(">"); - break; - case '\'': - result += QLatin1String("'"); - break; - case '"': - result += QLatin1String("""); - break; - default: + if (ch.unicode() != '\0') result += ch; - } } } |