diff options
author | Paul Wicking <paul.wicking@qt.io> | 2024-04-11 15:08:52 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2024-04-18 09:41:53 +0200 |
commit | d282992eceee23007813e353d80b8e19fc94fcd1 (patch) | |
tree | 9b012836c91596febb12305d7a777c91758d4ebd | |
parent | 94d1021cc54e61dcc24159f45ab47bb5fbfb1276 (diff) |
QDoc: Add Atom::append(const QString&)
Add `Atom::append` which appends its argument to the list of strings
held by the Atom.
Task-number: QTBUG-122261
Change-Id: I415a0a151b20cb4e39125fd078279641720e6b44
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
-rw-r--r-- | src/qdoc/qdoc/src/qdoc/atom.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qdoc/qdoc/src/qdoc/atom.h b/src/qdoc/qdoc/src/qdoc/atom.h index 6aee9847f..dbfd0c4a9 100644 --- a/src/qdoc/qdoc/src/qdoc/atom.h +++ b/src/qdoc/qdoc/src/qdoc/atom.h @@ -135,6 +135,7 @@ public: void appendChar(QChar ch) { m_strs[0] += ch; } void concatenateString(const QString &string) { m_strs[0] += string; } + void append(const QString &string) { m_strs << string; } void chopString() { m_strs[0].chop(1); } void setString(const QString &string) { m_strs[0] = string; } Atom *next() { return m_next; } |