forked from qt-creator/qt-creator
Avoid warning on empty expressions
For some reason, Q_UNUSED includes already a semicolon, adding one on the user side creates an additional empty statement. Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -61,19 +61,19 @@ public:
|
||||
|
||||
virtual void importFile(const QString &jsfile, const QString &module, int line, int column)
|
||||
{
|
||||
Q_UNUSED(jsfile);
|
||||
Q_UNUSED(module);
|
||||
Q_UNUSED(line);
|
||||
Q_UNUSED(column);
|
||||
Q_UNUSED(jsfile)
|
||||
Q_UNUSED(module)
|
||||
Q_UNUSED(line)
|
||||
Q_UNUSED(column)
|
||||
}
|
||||
|
||||
virtual void importModule(const QString &uri, const QString &version, const QString &module, int line, int column)
|
||||
{
|
||||
Q_UNUSED(uri);
|
||||
Q_UNUSED(version);
|
||||
Q_UNUSED(module);
|
||||
Q_UNUSED(line);
|
||||
Q_UNUSED(column);
|
||||
Q_UNUSED(uri)
|
||||
Q_UNUSED(version)
|
||||
Q_UNUSED(module)
|
||||
Q_UNUSED(line)
|
||||
Q_UNUSED(column)
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -717,8 +717,8 @@ ImportDependencies::ImportElements ImportDependencies::candidateImports(
|
||||
QList<DependencyInfo::ConstPtr> ImportDependencies::createDependencyInfos(
|
||||
const ImportKey &mainDoc, const ViewerContext &vContext) const
|
||||
{
|
||||
Q_UNUSED(mainDoc);
|
||||
Q_UNUSED(vContext);
|
||||
Q_UNUSED(mainDoc)
|
||||
Q_UNUSED(vContext)
|
||||
QList<DependencyInfo::ConstPtr> res;
|
||||
QTC_CHECK(false);
|
||||
return res;
|
||||
@@ -897,8 +897,8 @@ public:
|
||||
const Export &e,
|
||||
const CoreImport &cI) const
|
||||
{
|
||||
Q_UNUSED(m);
|
||||
Q_UNUSED(cI);
|
||||
Q_UNUSED(m)
|
||||
Q_UNUSED(cI)
|
||||
imports.insert(e.exportName.flatKey());
|
||||
return true;
|
||||
}
|
||||
@@ -931,7 +931,7 @@ void ImportDependencies::checkConsistency() const
|
||||
foreach (const Export &e, m_coreImports.value(s).possibleExports)
|
||||
if (e.exportName == j.key())
|
||||
found = true;
|
||||
Q_ASSERT(found); Q_UNUSED(found);
|
||||
Q_ASSERT(found); Q_UNUSED(found)
|
||||
}
|
||||
}
|
||||
QMapIterator<QString,CoreImport> i(m_coreImports);
|
||||
|
||||
@@ -237,7 +237,7 @@ ModelManagerInterface::WorkingCopy ModelManagerInterface::workingCopyInternal()
|
||||
void ModelManagerInterface::addTaskInternal(QFuture<void> result, const QString &msg,
|
||||
const char *taskId) const
|
||||
{
|
||||
Q_UNUSED(result);
|
||||
Q_UNUSED(result)
|
||||
qCDebug(qmljsLog) << "started " << taskId << " " << msg;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user