Changeset 769 for trunk/tools/assistant/lib/qhelpgenerator.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/tools/assistant/lib/qhelpgenerator.cpp
r651 r769 204 204 205 205 emit statusChanged(tr("Insert custom filters...")); 206 foreach ( QHelpDataCustomFilterf, helpData->customFilters()) {206 foreach (const QHelpDataCustomFilter &f, helpData->customFilters()) { 207 207 if (!registerCustomFilter(f.name, f.filterAttributes, true)) { 208 208 cleanupDB(); … … 368 368 "Value BLOB )"); 369 369 370 foreach ( QStringq, tables) {370 foreach (const QString &q, tables) { 371 371 if (!d->query->exec(q)) { 372 372 d->error = tr("Cannot create tables!"); … … 630 630 } 631 631 632 foreach ( QStringid, idsToInsert) {632 foreach (const QString &id, idsToInsert) { 633 633 d->query->prepare(QLatin1String("INSERT INTO FilterAttributeTable VALUES(NULL, ?)")); 634 634 d->query->bindValue(0, id); … … 665 665 d->query->exec(); 666 666 667 foreach ( QStringatt, filterAttribs) {667 foreach (const QString &att, filterAttribs) { 668 668 d->query->prepare(QLatin1String("INSERT INTO FilterTable VALUES(?, ?)")); 669 669 d->query->bindValue(0, nameId); … … 688 688 689 689 QList<int> filterAtts; 690 foreach ( QStringfilterAtt, filterAttributes) {690 foreach (const QString &filterAtt, filterAttributes) { 691 691 d->query->prepare(QLatin1String("SELECT Id FROM FilterAttributeTable WHERE Name=?")); 692 692 d->query->bindValue(0, filterAtt); … … 705 705 int i = 0; 706 706 d->query->exec(QLatin1String("BEGIN")); 707 foreach ( QHelpDataIndexItemitm, keywords) {707 foreach (const QHelpDataIndexItem &itm, keywords) { 708 708 pos = itm.reference.indexOf(QLatin1Char('#')); 709 709 fileName = itm.reference.left(pos); … … 774 774 775 775 // associate the filter attributes 776 foreach ( QStringfilterAtt, filterAttributes) {776 foreach (const QString &filterAtt, filterAttributes) { 777 777 d->query->prepare(QLatin1String("INSERT INTO ContentsFilterTable (FilterAttributeId, ContentsId) " 778 778 "SELECT Id, ? FROM FilterAttributeTable WHERE Name=?")); … … 799 799 atts.insert(d->query->value(0).toString()); 800 800 801 foreach ( QStrings, attributes) {801 foreach (const QString &s, attributes) { 802 802 if (!atts.contains(s)) { 803 803 d->query->prepare(QLatin1String("INSERT INTO FilterAttributeTable VALUES(NULL, ?)"));
Note:
See TracChangeset
for help on using the changeset viewer.