diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-03-14 14:47:59 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-03-18 20:57:40 (GMT) |
commit | fa1897b1889f7bf74de68f1ac99cf3be343a7551 (patch) | |
tree | ea14c45937cb6fef237c0fcafbd5b0923abd8f0a /src/rtfgen.h | |
parent | 0d05e79d67b5b808918541f429b06805207e8bdb (diff) | |
download | Doxygen-fa1897b1889f7bf74de68f1ac99cf3be343a7551.zip Doxygen-fa1897b1889f7bf74de68f1ac99cf3be343a7551.tar.gz Doxygen-fa1897b1889f7bf74de68f1ac99cf3be343a7551.tar.bz2 |
Refactoring: replace QFile/FTextStream with fstream/stringstream
Diffstat (limited to 'src/rtfgen.h')
-rw-r--r-- | src/rtfgen.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/rtfgen.h b/src/rtfgen.h index 0aebd15..e6695bb 100644 --- a/src/rtfgen.h +++ b/src/rtfgen.h @@ -21,8 +21,6 @@ #include "config.h" #include "outputgen.h" -class QFile; - /** Generator for RTF output. */ class RTFGenerator : public OutputGenerator { @@ -34,8 +32,8 @@ class RTFGenerator : public OutputGenerator virtual std::unique_ptr<OutputGenerator> clone() const; static void init(); - static void writeStyleSheetFile(QFile &f); - static void writeExtensionsFile(QFile &file); + static void writeStyleSheetFile(std::ostream &t); + static void writeExtensionsFile(std::ostream &t); OutputType type() const { return RTF; } void setRelativePath(const QCString &path); @@ -152,7 +150,7 @@ class RTFGenerator : public OutputGenerator void endSubsection(); void startSubsubsection(); void endSubsubsection(); - void startCenter() { t << "{\\qc" << endl; } + void startCenter() { t << "{\\qc\n"; } void endCenter() { t << "}"; } void startSmall() { t << "{\\sub "; } void endSmall() { t << "}"; } |