summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/pagegenerator.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-11-05 11:12:31 (GMT)
committerMartin Smith <martin.smith@nokia.com>2010-11-05 11:12:31 (GMT)
commite2cffa74190833621d82697325d5cbbbb2aaec85 (patch)
treee1e370dd391e4009d3bffbdf8a96c2b03a5bd05c /tools/qdoc3/pagegenerator.cpp
parentb2793a9b7f14508be5cf14bb19127e886b8f1492 (diff)
downloadQt-e2cffa74190833621d82697325d5cbbbb2aaec85.zip
Qt-e2cffa74190833621d82697325d5cbbbb2aaec85.tar.gz
Qt-e2cffa74190833621d82697325d5cbbbb2aaec85.tar.bz2
qdoc: First pass at generating a map.
Some files are missing, and I don't know if the syntax is complete. But it's a start. Task-number: QTBUG-14981
Diffstat (limited to 'tools/qdoc3/pagegenerator.cpp')
-rw-r--r--tools/qdoc3/pagegenerator.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/qdoc3/pagegenerator.cpp b/tools/qdoc3/pagegenerator.cpp
index 6ba562c..ca98faa 100644
--- a/tools/qdoc3/pagegenerator.cpp
+++ b/tools/qdoc3/pagegenerator.cpp
@@ -289,11 +289,10 @@ QString PageGenerator::outFileName()
void PageGenerator::beginSubPage(const Location& location,
const QString& fileName)
{
- QFile *outFile = new QFile(outputDir() + "/" + fileName);
+ QFile* outFile = new QFile(outputDir() + "/" + fileName);
if (!outFile->open(QFile::WriteOnly))
- location.fatal(tr("Cannot open output file '%1'")
- .arg(outFile->fileName()));
- QTextStream *out = new QTextStream(outFile);
+ location.fatal(tr("Cannot open output file '%1'").arg(outFile->fileName()));
+ QTextStream* out = new QTextStream(outFile);
out->setCodec(outputCodec);
outStreamStack.push(out);
}