diff options
Diffstat (limited to 'src/tools/qdoc/text.cpp')
-rw-r--r-- | src/tools/qdoc/text.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tools/qdoc/text.cpp b/src/tools/qdoc/text.cpp index e2f682726d..ae716a0e50 100644 --- a/src/tools/qdoc/text.cpp +++ b/src/tools/qdoc/text.cpp @@ -111,6 +111,22 @@ Text& Text::operator<<(const Atom& atom) return *this; } +/*! + Special output operator for LinkAtom. It makes a copy of + the LinkAtom \a atom and connects the cop;y to the list + in this Text. + */ +Text& Text::operator<<(const LinkAtom& atom) +{ + if (first == 0) { + first = new LinkAtom(atom); + last = first; + } + else + last = new LinkAtom(last, atom); + return *this; +} + Text& Text::operator<<(const Text& text) { const Atom* atom = text.firstAtom(); |