summaryrefslogtreecommitdiffstats
path: root/src/rtfgen.h
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-25 19:21:37 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-12-25 19:21:37 (GMT)
commit5970cae1c37dc07acb7fd495520e83f20171a821 (patch)
tree7054df5dad72ff0d1b1a97b2ffe17aa638fa9778 /src/rtfgen.h
parentb294263f69f56feee519fb95d71e504ea7682c5e (diff)
downloadDoxygen-5970cae1c37dc07acb7fd495520e83f20171a821.zip
Doxygen-5970cae1c37dc07acb7fd495520e83f20171a821.tar.gz
Doxygen-5970cae1c37dc07acb7fd495520e83f20171a821.tar.bz2
Minor fixes
Avoid code duplication by adding function addHtmlExtensionIfMissing() and avoid member shadowing by using 'm_' prefix for member variables
Diffstat (limited to 'src/rtfgen.h')
-rw-r--r--src/rtfgen.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rtfgen.h b/src/rtfgen.h
index 575b9a3..c6cb76b 100644
--- a/src/rtfgen.h
+++ b/src/rtfgen.h
@@ -33,12 +33,12 @@ class RTFGenerator : public OutputGenerator
static void writeExtensionsFile(QFile &file);
void enable()
- { if (genStack->top()) active=*genStack->top(); else active=TRUE; }
- void disable() { active=FALSE; }
+ { if (m_genStack->top()) m_active=*m_genStack->top(); else m_active=TRUE; }
+ void disable() { m_active=FALSE; }
void enableIf(OutputType o) { if (o==RTF) enable(); }
void disableIf(OutputType o) { if (o==RTF) disable(); }
void disableIfNot(OutputType o) { if (o!=RTF) disable(); }
- bool isEnabled(OutputType o) { return (o==RTF && active); }
+ bool isEnabled(OutputType o) { return (o==RTF && m_active); }
OutputGenerator *get(OutputType o) { return (o==RTF) ? this : 0; }
void writeDoc(DocNode *,const Definition *,const MemberDef *);
@@ -279,14 +279,14 @@ class RTFGenerator : public OutputGenerator
const char *rtf_Code_DepthStyle();
void incrementIndentLevel();
void decrementIndentLevel();
- int col;
+ int m_col;
bool m_prettyCode;
bool m_bstartedBody; // has startbody been called yet?
int m_listLevel; // // RTF does not really have a additive indent...manually set list level.
bool m_omitParagraph; // should a the next paragraph command be ignored?
int m_numCols; // number of columns in a table
- QCString relPath;
+ QCString m_relPath;
void beginRTFDocument();
void beginRTFChapter();