diff options
Diffstat (limited to 'src/qdoc/text.h')
-rw-r--r-- | src/qdoc/text.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qdoc/text.h b/src/qdoc/text.h index ad33685d0..d72d38469 100644 --- a/src/qdoc/text.h +++ b/src/qdoc/text.h @@ -57,15 +57,16 @@ public: void stripFirstAtom(); void stripLastAtom(); - bool isEmpty() const { return first == 0; } + bool isEmpty() const { return first == nullptr; } + bool contains(const QString& str) const; QString toString() const; const Atom *firstAtom() const { return first; } const Atom *lastAtom() const { return last; } - Text subText(Atom::AtomType left, Atom::AtomType right, const Atom *from = 0, bool inclusive = false) const; + Text subText(Atom::AtomType left, Atom::AtomType right, const Atom *from = nullptr, bool inclusive = false) const; void dump() const; void clear(); - static Text subText(const Atom *begin, const Atom *end = 0); + static Text subText(const Atom *begin, const Atom *end = nullptr); static Text sectionHeading(const Atom *sectionBegin); static const Atom *sectionHeadingAtom(const Atom *sectionLeft); static int compare(const Text &text1, const Text &text2); |