diff options
author | Thiago Macieira <[email protected]> | 2012-05-24 16:08:54 +0200 |
---|---|---|
committer | Qt by Nokia <[email protected]> | 2012-05-29 11:35:21 +0200 |
commit | 395f7579c004927f3ac3ac8a5e28817634bfc881 (patch) | |
tree | 1831813f6041abefd9807e08a0ba9a3f998ae31e /src/tools/qdoc/doc.cpp | |
parent | 779e2f38eac4ef76ae8bcee9a990a534350625f1 (diff) |
Make qdoc compile with QT_STRICT_ITERATORS
Change-Id: I2923315678d1aef516b35a8c83fe734367723a28
Reviewed-by: Casper van Donderen <[email protected]>
Diffstat (limited to 'src/tools/qdoc/doc.cpp')
-rw-r--r-- | src/tools/qdoc/doc.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/tools/qdoc/doc.cpp b/src/tools/qdoc/doc.cpp index 3086a64b1c5..15d194e0afa 100644 --- a/src/tools/qdoc/doc.cpp +++ b/src/tools/qdoc/doc.cpp @@ -1403,13 +1403,13 @@ void DocParser::parse(const QString& source, const Macro ¯o = macroHash()->value(cmdStr); int numPendingFi = 0; QStringMap::ConstIterator d; - d = macro.otherDefs.begin(); - while (d != macro.otherDefs.end()) { + d = macro.otherDefs.constBegin(); + while (d != macro.otherDefs.constEnd()) { append(Atom::FormatIf, d.key()); expandMacro(cmdStr, *d, macro.numParams); ++d; - if (d == macro.otherDefs.end()) { + if (d == macro.otherDefs.constEnd()) { append(Atom::FormatEndif); } else { @@ -1785,8 +1785,8 @@ void DocParser::startFormat(const QString& format, int cmd) { enterPara(); - QMap<int, QString>::ConstIterator f = pendingFormats.begin(); - while (f != pendingFormats.end()) { + QMap<int, QString>::ConstIterator f = pendingFormats.constBegin(); + while (f != pendingFormats.constEnd()) { if (*f == format) { location().warning(tr("Cannot nest '\\%1' commands") .arg(cmdName(cmd))); @@ -3108,8 +3108,8 @@ void Doc::initialize(const Config& config) QStringMap reverseAliasMap; QSet<QString> commands = config.subVars(CONFIG_ALIAS); - QSet<QString>::ConstIterator c = commands.begin(); - while (c != commands.end()) { + QSet<QString>::ConstIterator c = commands.constBegin(); + while (c != commands.constEnd()) { QString alias = config.getString(CONFIG_ALIAS + Config::dot + *c); if (reverseAliasMap.contains(alias)) { config.lastLocation().warning(tr("Command name '\\%1' cannot stand" @@ -3136,8 +3136,8 @@ void Doc::initialize(const Config& config) } QSet<QString> macroNames = config.subVars(CONFIG_MACRO); - QSet<QString>::ConstIterator n = macroNames.begin(); - while (n != macroNames.end()) { + QSet<QString>::ConstIterator n = macroNames.constBegin(); + while (n != macroNames.constEnd()) { QString macroDotName = CONFIG_MACRO + Config::dot + *n; Macro macro; macro.numParams = -1; @@ -3149,8 +3149,8 @@ void Doc::initialize(const Config& config) bool silent = false; QSet<QString> formats = config.subVars(macroDotName); - QSet<QString>::ConstIterator f = formats.begin(); - while (f != formats.end()) { + QSet<QString>::ConstIterator f = formats.constBegin(); + while (f != formats.constEnd()) { QString def = config.getString(macroDotName + Config::dot + *f); if (!def.isEmpty()) { macro.otherDefs.insert(*f, def); @@ -3162,7 +3162,7 @@ void Doc::initialize(const Config& config) if (!silent) { QString other = tr("default"); if (macro.defaultDef.isEmpty()) - other = macro.otherDefs.begin().key(); + other = macro.otherDefs.constBegin().key(); config.lastLocation().warning(tr("Macro '\\%1' takes" " inconsistent number" " of arguments (%2" |