aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-17 17:02:23 -0200
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-18 08:38:03 -0300
commite4c1f6a91ad8f12a196948ca52231f6353b0f233 (patch)
tree26b1a4df9442dc0fef7fb842891b557d2a4b657a
parente860f1efded4e9dc177686372ed06d3a97ba3f11 (diff)
Remove two compilation warnings from qtdoc generator.
Reviewed by Renato Araujo <renato.filho@openbossa.org>
-rw-r--r--generators/qtdoc/qtdocgenerator.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/generators/qtdoc/qtdocgenerator.cpp b/generators/qtdoc/qtdocgenerator.cpp
index ff05d9336..47028813f 100644
--- a/generators/qtdoc/qtdocgenerator.cpp
+++ b/generators/qtdoc/qtdocgenerator.cpp
@@ -224,15 +224,16 @@ QString QtXmlToSphinx::readFromLocation(QString& location, QString& identifier)
while (!inputFile.atEnd()) {
line = inputFile.readLine();
- if (identifierIsEmpty)
+ if (identifierIsEmpty) {
code += line;
- else if (getCode && !line.contains(searchString))
+ } else if (getCode && !line.contains(searchString)) {
code += line.replace(codeSnippetCode, "");
- else if (line.contains(searchString))
+ } else if (line.contains(searchString)) {
if (getCode)
break;
else
getCode = true;
+ }
}
if (code.isEmpty())
@@ -248,7 +249,7 @@ void QtXmlToSphinx::handleHeadingTag(QXmlStreamReader& reader)
static char types[] = { '-', '^' };
QXmlStreamReader::TokenType token = reader.tokenType();
if (token == QXmlStreamReader::StartElement) {
- int typeIdx = reader.attributes().value("level").toString().toInt();
+ uint typeIdx = reader.attributes().value("level").toString().toInt();
if (typeIdx >= sizeof(types))
type = types[sizeof(types)-1];
else
@@ -765,7 +766,6 @@ QTextStream& operator<<(QTextStream& s, const QtXmlToSphinx::Table &table)
// print line
s << INDENT << '+';
- char c = (!i && table.hasHeader()) ? '=' : '-';
for (int col = 0, max = colWidths.count(); col < max; ++col) {
char c;
if (row[col].rowSpan == -1)