diff options
author | Martin Smith <msmith@trolltech.com> | 2010-02-11 10:31:36 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2010-02-11 10:31:36 (GMT) |
commit | 802051dd1eb8dd63e84ac0c241f560d8cdf350c5 (patch) | |
tree | 32b681c0925298598ba2e0bb56e3d1b09f2f8eea /tools/qdoc3/htmlgenerator.cpp | |
parent | 9a83bf2676dabdf36f9ca491b480b50d8e7ed93d (diff) | |
download | Qt-802051dd1eb8dd63e84ac0c241f560d8cdf350c5.zip Qt-802051dd1eb8dd63e84ac0c241f560d8cdf350c5.tar.gz Qt-802051dd1eb8dd63e84ac0c241f560d8cdf350c5.tar.bz2 |
qdoc3: Added curly braces in switch statement for braindead compiler.
Also added the \pagekeywords command.
Task: QTBUG-7877
Diffstat (limited to 'tools/qdoc3/htmlgenerator.cpp')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 27716a4..ffd3b5b 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -4378,18 +4378,24 @@ bool HtmlGenerator::generatePageElement(QXmlStreamWriter& writer, t.setNum(id++); switch (node->type()) { case Node::Fake: - const FakeNode* fake = static_cast<const FakeNode*>(node); - title = fake->fullTitle(); - break; + { + const FakeNode* fake = static_cast<const FakeNode*>(node); + title = fake->fullTitle(); + break; + } case Node::Class: - title = node->name() + " Class Reference"; - break; + { + title = node->name() + " Class Reference"; + break; + } case Node::Namespace: - const InnerNode* inner = static_cast<const InnerNode*>(node); - rawTitle = marker->plainName(inner); - fullTitle = marker->plainFullName(inner); - title = rawTitle + " Namespace Reference"; - break; + { + const InnerNode* inner = static_cast<const InnerNode*>(node); + rawTitle = marker->plainName(inner); + fullTitle = marker->plainFullName(inner); + title = rawTitle + " Namespace Reference"; + break; + } default: title = node->name(); break; |