summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-07-09 07:25:30 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-07-09 07:26:36 (GMT)
commitdc2b39a866190e302eed171381c2c0384e152800 (patch)
tree59645826129899d32eb47dd7d8d96c71885a2d25 /tools
parentc365e7e91feab7d07653e0086ba297bb1f8a6234 (diff)
downloadQt-dc2b39a866190e302eed171381c2c0384e152800.zip
Qt-dc2b39a866190e302eed171381c2c0384e152800.tar.gz
Qt-dc2b39a866190e302eed171381c2c0384e152800.tar.bz2
qdoc: Removed unnecessary error report/rule
qdoc reported an error if you used \section2 on its owin, i.e. with no outer \section1. While strictly speaking correct, it imposed an unnecessary restriction, e.g. sometimes you just want to use \section2 to get a smaller title for a section.
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/doc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qdoc3/doc.cpp b/tools/qdoc3/doc.cpp
index 222b9a1..d5aca0e 100644
--- a/tools/qdoc3/doc.cpp
+++ b/tools/qdoc3/doc.cpp
@@ -1677,10 +1677,13 @@ void DocParser::startSection(Doc::SectioningUnit unit, int cmd)
leavePara();
if (currentSectioningUnit == Doc::Book) {
+#if 0
+ // mws didn't think this was necessary.
if (unit > Doc::Section1)
location().warning(tr("Unexpected '\\%1' without '\\%2'")
.arg(cmdName(cmd))
.arg(cmdName(CMD_SECTION1)));
+#endif
currentSectioningUnit = (Doc::SectioningUnit) (unit - 1);
priv->constructExtra();
priv->extra->sectioningUnit = currentSectioningUnit;