forked from qt-creator/qt-creator
QmlDesigner: Fix macOS build
Unused variable in various cases Change-Id: I665c037b21446c4ba4eabb1b73ac5a03b22547e2 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -1057,7 +1057,7 @@ void ConnectionEditorEvaluator::endVisit([[maybe_unused]] QmlJS::AST::CallExpres
|
|||||||
d->m_acceptLogArgument = false;
|
d->m_acceptLogArgument = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConnectionEditorEvaluator::endVisit(QmlJS::AST::IfStatement *ifStatement)
|
void ConnectionEditorEvaluator::endVisit(QmlJS::AST::IfStatement * /*ifStatement*/)
|
||||||
{
|
{
|
||||||
if (status() != UnFinished)
|
if (status() != UnFinished)
|
||||||
return;
|
return;
|
||||||
@@ -1070,7 +1070,7 @@ void ConnectionEditorEvaluator::endVisit(QmlJS::AST::IfStatement *ifStatement)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConnectionEditorEvaluator::endVisit(QmlJS::AST::StatementList *statementList)
|
void ConnectionEditorEvaluator::endVisit(QmlJS::AST::StatementList * /*statementList*/)
|
||||||
{
|
{
|
||||||
if (status() != UnFinished)
|
if (status() != UnFinished)
|
||||||
return;
|
return;
|
||||||
|
@@ -316,7 +316,6 @@ MatchedStatement &ConnectionEditorStatements::okStatement(
|
|||||||
ConnectionEditorStatements::Handler &handler)
|
ConnectionEditorStatements::Handler &handler)
|
||||||
{
|
{
|
||||||
MatchedStatement statement;
|
MatchedStatement statement;
|
||||||
std::visit([statement](auto &test) { return statement; }, handler);
|
|
||||||
|
|
||||||
return std::visit(Overload{[](ConnectionEditorStatements::MatchedStatement &var)
|
return std::visit(Overload{[](ConnectionEditorStatements::MatchedStatement &var)
|
||||||
-> MatchedStatement & { return var; },
|
-> MatchedStatement & { return var; },
|
||||||
|
@@ -1425,7 +1425,7 @@ ConditionListModel::ConditionListModel(ConnectionModel *parent)
|
|||||||
: m_connectionModel(parent), m_condition(emptyCondition)
|
: m_connectionModel(parent), m_condition(emptyCondition)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
int ConditionListModel::rowCount(const QModelIndex &parent) const
|
int ConditionListModel::rowCount(const QModelIndex & /*parent*/) const
|
||||||
{
|
{
|
||||||
return m_tokens.size();
|
return m_tokens.size();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user