forked from qt-creator/qt-creator
QmlJS: Rename variable called "interface"
Easily conflicts with a macro of the same name in windows.h. Change-Id: Ia6dfb294092497c48816e71ff901e9c3b2c8359f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -1295,13 +1295,13 @@ bool rescanExports(const QString &fileName, FindExportedCppTypes &finder,
|
|||||||
return hasNewInfo;
|
return hasNewInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModelManagerInterface::updateCppQmlTypes(QFutureInterface<void> &interface,
|
void ModelManagerInterface::updateCppQmlTypes(QFutureInterface<void> &futureInterface,
|
||||||
ModelManagerInterface *qmlModelManager,
|
ModelManagerInterface *qmlModelManager,
|
||||||
CPlusPlus::Snapshot snapshot,
|
CPlusPlus::Snapshot snapshot,
|
||||||
QHash<QString, QPair<CPlusPlus::Document::Ptr, bool> > documents)
|
QHash<QString, QPair<CPlusPlus::Document::Ptr, bool> > documents)
|
||||||
{
|
{
|
||||||
interface.setProgressRange(0, documents.size());
|
futureInterface.setProgressRange(0, documents.size());
|
||||||
interface.setProgressValue(0);
|
futureInterface.setProgressValue(0);
|
||||||
|
|
||||||
CppDataHash newData;
|
CppDataHash newData;
|
||||||
QHash<QString, QList<CPlusPlus::Document::Ptr> > newDeclarations;
|
QHash<QString, QList<CPlusPlus::Document::Ptr> > newDeclarations;
|
||||||
@@ -1316,9 +1316,9 @@ void ModelManagerInterface::updateCppQmlTypes(QFutureInterface<void> &interface,
|
|||||||
bool hasNewInfo = false;
|
bool hasNewInfo = false;
|
||||||
typedef QPair<CPlusPlus::Document::Ptr, bool> DocScanPair;
|
typedef QPair<CPlusPlus::Document::Ptr, bool> DocScanPair;
|
||||||
foreach (const DocScanPair &pair, documents) {
|
foreach (const DocScanPair &pair, documents) {
|
||||||
if (interface.isCanceled())
|
if (futureInterface.isCanceled())
|
||||||
return;
|
return;
|
||||||
interface.setProgressValue(interface.progressValue() + 1);
|
futureInterface.setProgressValue(futureInterface.progressValue() + 1);
|
||||||
|
|
||||||
CPlusPlus::Document::Ptr doc = pair.first;
|
CPlusPlus::Document::Ptr doc = pair.first;
|
||||||
const bool scan = pair.second;
|
const bool scan = pair.second;
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ protected:
|
|||||||
ModelManagerInterface *modelManager,
|
ModelManagerInterface *modelManager,
|
||||||
QmlJS::Dialect mainLanguage,
|
QmlJS::Dialect mainLanguage,
|
||||||
bool emitDocChangedOnDisk);
|
bool emitDocChangedOnDisk);
|
||||||
static void updateCppQmlTypes(QFutureInterface<void> &interface,
|
static void updateCppQmlTypes(QFutureInterface<void> &futureInterface,
|
||||||
ModelManagerInterface *qmlModelManager,
|
ModelManagerInterface *qmlModelManager,
|
||||||
CPlusPlus::Snapshot snapshot,
|
CPlusPlus::Snapshot snapshot,
|
||||||
QHash<QString, QPair<CPlusPlus::Document::Ptr, bool> > documents);
|
QHash<QString, QPair<CPlusPlus::Document::Ptr, bool> > documents);
|
||||||
|
|||||||
Reference in New Issue
Block a user