summaryrefslogtreecommitdiff
path: root/src/qdoc/qmlcodemarker.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-02-06 13:16:42 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-02-13 10:55:40 +0100
commit00cc7b2e4a39eea81abf46b485a98c2cfc79630c (patch)
tree4f653752b22f1a2dce15f9291ba3059cf565b65d /src/qdoc/qmlcodemarker.cpp
parentdb7a30bd1dca12b04f04a2617d54e22c61e5cf70 (diff)
downloadqttools-00cc7b2e4a39eea81abf46b485a98c2cfc79630c.tar.gz
qdoc: Remove duplicated helper function
It causes clashes in CMake Unity (Jumbo) builds. Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: Ia7aa2428f93f5ff07fea7e77e93df91cd0a75f4e Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io> Reviewed-by: Luca Di Sera <luca.disera@qt.io>
Diffstat (limited to 'src/qdoc/qmlcodemarker.cpp')
-rw-r--r--src/qdoc/qmlcodemarker.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/qdoc/qmlcodemarker.cpp b/src/qdoc/qmlcodemarker.cpp
index 3ad787c93..20b2ccffc 100644
--- a/src/qdoc/qmlcodemarker.cpp
+++ b/src/qdoc/qmlcodemarker.cpp
@@ -143,13 +143,7 @@ QString QmlCodeMarker::addMarkUp(const QString &code, const Node * /* relative *
Copied and pasted from
src/declarative/qml/qqmlscriptparser.cpp.
*/
-static void replaceWithSpace(QString &str, int idx, int n)
-{
- QChar *data = str.data() + idx;
- const QChar space(QLatin1Char(' '));
- for (int ii = 0; ii < n; ++ii)
- *data++ = space;
-}
+void replaceWithSpace(QString &str, int idx, int n); // qmlcodeparser.cpp
/*
Copied and pasted from