diff options
Diffstat (limited to 'src/qdoc/text.cpp')
-rw-r--r-- | src/qdoc/text.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qdoc/text.cpp b/src/qdoc/text.cpp index 7c526ad1f..387883109 100644 --- a/src/qdoc/text.cpp +++ b/src/qdoc/text.cpp @@ -234,7 +234,8 @@ void Text::dump() const str.replace("\\", "\\\\"); str.replace("\"", "\\\""); str.replace("\n", "\\n"); - str.replace(QRegularExpression(R"([^ -~])"), "?"); + static const QRegularExpression re(R"([^ -~])"); + str.replace(re, "?"); if (!str.isEmpty()) str = " \"" + str + QLatin1Char('"'); |