summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Negreanu <adrian.m.negreanu@intel.com>2014-01-08 19:58:59 (GMT)
committerAdrian Negreanu <adrian.m.negreanu@intel.com>2014-01-08 19:59:36 (GMT)
commit54fbd99c753e09b1c3850af6b8b4457d339b6e84 (patch)
treeefe050506f3040206fc8ee3b5b4c74f1059d0bec
parent2d47546de9341dd481b199fae6125fdbb2a37d53 (diff)
downloadDoxygen-54fbd99c753e09b1c3850af6b8b4457d339b6e84.zip
Doxygen-54fbd99c753e09b1c3850af6b8b4457d339b6e84.tar.gz
Doxygen-54fbd99c753e09b1c3850af6b8b4457d339b6e84.tar.bz2
sqlite3: use the new qtools API
Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
-rw-r--r--src/sqlite3gen.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/sqlite3gen.cpp b/src/sqlite3gen.cpp
index a59a3d0..c681214 100644
--- a/src/sqlite3gen.cpp
+++ b/src/sqlite3gen.cpp
@@ -611,11 +611,12 @@ static void generateSqlite3ForMember(sqlite3*db,MemberDef *md,Definition *def)
StringList l;
linkifyText(TextGeneratorSqlite3Impl(l),def,md->getBodyDef(),md,a->type);
- QCString *s=l.first();
- while (s)
+ StringListIterator li(l);
+ QCString *s;
+ while ((s=li.current()))
{
insertMemberReference(db,md->anchor().data(),s->data(),def->getDefFileName().data(),md->getDefLine(),1);
- s=l.next();
+ ++li;
}
}
if (!a->name.isEmpty())
@@ -669,8 +670,9 @@ static void generateSqlite3ForMember(sqlite3*db,MemberDef *md,Definition *def)
StringList l;
linkifyText(TextGeneratorSqlite3Impl(l),def,md->getBodyDef(),md,md->initializer());
- QCString *s=l.first();
- while (s)
+ StringListIterator li(l);
+ QCString *s;
+ while ((s=li.current()))
{
if (md->getBodyDef())
{
@@ -681,7 +683,7 @@ static void generateSqlite3ForMember(sqlite3*db,MemberDef *md,Definition *def)
md->getStartBodyLine()));
insertMemberReference(db,md->anchor().data(),s->data(),md->getBodyDef()->getDefFileName().data(),md->getStartBodyLine(),1);
}
- s=l.next();
+ ++li;
}
}