forked from qt-creator/qt-creator
ProParser: Fix build
Amends 2f8b541fe5
.
Change-Id: I596d846e2d143e71f217e01b5c820ceb7a3ccada
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -72,8 +72,8 @@ void ProFileCache::discardFile(int id)
|
||||
#endif
|
||||
auto it = parsed_files.find(id);
|
||||
if (it != parsed_files.end()) {
|
||||
#ifdef PROPARSER_THREAD_SAFE
|
||||
Entry &entry = it->second;
|
||||
#ifdef PROPARSER_THREAD_SAFE
|
||||
Entry::Locker *locker = entry.locker;
|
||||
if (locker) { // Either it's still being prepared or it's already done but someone
|
||||
// else started waiting for it when it wasn't ready yet
|
||||
@@ -118,9 +118,9 @@ void ProFileCache::discardFiles(const QString &prefix, QMakeVfs *vfs)
|
||||
// Note: this is empty for virtual files from other VFSes.
|
||||
const QString fn = vfs->fileNameForId(id);
|
||||
if (fn.startsWith(prefix)) {
|
||||
#ifdef PROPARSER_THREAD_SAFE
|
||||
bool continueFromScratch = false;
|
||||
Entry &entry = it->second;
|
||||
#ifdef PROPARSER_THREAD_SAFE
|
||||
Entry::Locker *locker = entry.locker;
|
||||
if (locker) { // Either it's still being prepared or it's already done but someone
|
||||
// else started waiting for it when it wasn't ready yet
|
||||
|
Reference in New Issue
Block a user