Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/assistant/lib/qhelpgenerator.cpp

    r651 r769  
    204204
    205205    emit statusChanged(tr("Insert custom filters..."));
    206     foreach (QHelpDataCustomFilter f, helpData->customFilters()) {
     206    foreach (const QHelpDataCustomFilter &f, helpData->customFilters()) {
    207207        if (!registerCustomFilter(f.name, f.filterAttributes, true)) {
    208208            cleanupDB();
     
    368368            "Value BLOB )");
    369369
    370     foreach (QString q, tables) {
     370    foreach (const QString &q, tables) {
    371371        if (!d->query->exec(q)) {
    372372            d->error = tr("Cannot create tables!");
     
    630630    }
    631631
    632     foreach (QString id, idsToInsert) {
     632    foreach (const QString &id, idsToInsert) {
    633633        d->query->prepare(QLatin1String("INSERT INTO FilterAttributeTable VALUES(NULL, ?)"));
    634634        d->query->bindValue(0, id);
     
    665665    d->query->exec();
    666666
    667     foreach (QString att, filterAttribs) {
     667    foreach (const QString &att, filterAttribs) {
    668668        d->query->prepare(QLatin1String("INSERT INTO FilterTable VALUES(?, ?)"));
    669669        d->query->bindValue(0, nameId);
     
    688688
    689689    QList<int> filterAtts;
    690     foreach (QString filterAtt, filterAttributes) {
     690    foreach (const QString &filterAtt, filterAttributes) {
    691691        d->query->prepare(QLatin1String("SELECT Id FROM FilterAttributeTable WHERE Name=?"));
    692692        d->query->bindValue(0, filterAtt);
     
    705705    int i = 0;
    706706    d->query->exec(QLatin1String("BEGIN"));
    707     foreach (QHelpDataIndexItem itm, keywords) {
     707    foreach (const QHelpDataIndexItem &itm, keywords) {
    708708        pos = itm.reference.indexOf(QLatin1Char('#'));
    709709        fileName = itm.reference.left(pos);
     
    774774
    775775    // associate the filter attributes
    776     foreach (QString filterAtt, filterAttributes) {
     776    foreach (const QString &filterAtt, filterAttributes) {
    777777        d->query->prepare(QLatin1String("INSERT INTO ContentsFilterTable (FilterAttributeId, ContentsId) "
    778778            "SELECT Id, ? FROM FilterAttributeTable WHERE Name=?"));
     
    799799        atts.insert(d->query->value(0).toString());
    800800
    801     foreach (QString s, attributes) {
     801    foreach (const QString &s, attributes) {
    802802        if (!atts.contains(s)) {
    803803            d->query->prepare(QLatin1String("INSERT INTO FilterAttributeTable VALUES(NULL, ?)"));
Note: See TracChangeset for help on using the changeset viewer.