summaryrefslogtreecommitdiffstats
path: root/src/outputgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-26 14:40:50 (GMT)
committerGitHub <noreply@github.com>2019-12-26 14:40:50 (GMT)
commitd1e058b9c1f93aa0a986dbc8a754c5eabd747e27 (patch)
tree5dadd9d3fae88b0d9e37182ea073e60ebe3197a5 /src/outputgen.cpp
parentc42c0ae66542e4e154c2646fc725890554208d89 (diff)
parenta5c98ade388f4f18ec30476ca706760a8129c73f (diff)
downloadDoxygen-d1e058b9c1f93aa0a986dbc8a754c5eabd747e27.zip
Doxygen-d1e058b9c1f93aa0a986dbc8a754c5eabd747e27.tar.gz
Doxygen-d1e058b9c1f93aa0a986dbc8a754c5eabd747e27.tar.bz2
Merge branch 'master' into feature/bug_fenced_code
Diffstat (limited to 'src/outputgen.cpp')
-rw-r--r--src/outputgen.cpp33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/outputgen.cpp b/src/outputgen.cpp
index 53d2d7f..b9f24fa 100644
--- a/src/outputgen.cpp
+++ b/src/outputgen.cpp
@@ -26,50 +26,49 @@
OutputGenerator::OutputGenerator()
{
//printf("OutputGenerator::OutputGenerator()\n");
- file=0;
- active=TRUE;
- genStack = new QStack<bool>;
- genStack->setAutoDelete(TRUE);
+ m_file=0;
+ m_active=TRUE;
+ m_genStack = new QStack<bool>;
+ m_genStack->setAutoDelete(TRUE);
}
OutputGenerator::~OutputGenerator()
{
//printf("OutputGenerator::~OutputGenerator()\n");
- delete file;
- delete genStack;
+ delete m_file;
+ delete m_genStack;
}
void OutputGenerator::startPlainFile(const char *name)
{
//printf("startPlainFile(%s)\n",name);
- fileName=dir+"/"+name;
- file = new QFile(fileName);
- if (!file->open(IO_WriteOnly))
+ m_fileName=m_dir+"/"+name;
+ m_file = new QFile(m_fileName);
+ if (!m_file->open(IO_WriteOnly))
{
- err("Could not open file %s for writing\n",fileName.data());
- exit(1);
+ term("Could not open file %s for writing\n",m_fileName.data());
}
- t.setDevice(file);
+ t.setDevice(m_file);
}
void OutputGenerator::endPlainFile()
{
t.unsetDevice();
- delete file;
- file=0;
- fileName.resize(0);
+ delete m_file;
+ m_file=0;
+ m_fileName.resize(0);
}
void OutputGenerator::pushGeneratorState()
{
- genStack->push(new bool(isEnabled()));
+ m_genStack->push(new bool(isEnabled()));
//printf("%p:pushGeneratorState(%d) enabled=%d\n",this,genStack->count(),isEnabled());
}
void OutputGenerator::popGeneratorState()
{
//printf("%p:popGeneratorState(%d) enabled=%d\n",this,genStack->count(),isEnabled());
- bool *lb = genStack->pop();
+ bool *lb = m_genStack->pop();
ASSERT(lb!=0);
if (lb==0) return; // for some robustness against superfluous \endhtmlonly commands.
if (*lb) enable(); else disable();