tools/assistant/lib/qhelpcontentwidget.cpp
changeset 18 2f34d5167611
parent 3 41300fa6a67c
child 30 5dc02b23752f
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the Qt Assistant of the Qt Toolkit.
     7 ** This file is part of the Qt Assistant of the Qt Toolkit.
     8 **
     8 **
   251     m_rootItems.enqueue(m_rootItem);
   251     m_rootItems.enqueue(m_rootItem);
   252     QStringList atts = m_filterAttributes;
   252     QStringList atts = m_filterAttributes;
   253     const QStringList fileNames = m_helpEngine->orderedFileNameList;
   253     const QStringList fileNames = m_helpEngine->orderedFileNameList;
   254     m_mutex.unlock();
   254     m_mutex.unlock();
   255 
   255 
   256     foreach (QString dbFileName, fileNames) {
   256     foreach (const QString &dbFileName, fileNames) {
   257         m_mutex.lock();
   257         m_mutex.lock();
   258         if (m_abort) {
   258         if (m_abort) {
   259             m_abort = false;
   259             m_abort = false;
   260             m_mutex.unlock();
   260             m_mutex.unlock();
   261             break;
   261             break;