ProjectExplorer: Fix warning about signed/unsigned mismatch

Msvc says:
warning: C4018: '>=': signed/unsigned mismatch

Change-Id: Ib3fc4734088bd799271105ed3757d55562efcba3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Alessandro Portale
2018-04-11 18:00:34 +02:00
parent 5f1d035a1b
commit 8797123128

View File

@@ -904,7 +904,7 @@ void ListField::initializeData(MacroExpander *expander)
{ {
QTC_ASSERT(widget(), return); QTC_ASSERT(widget(), return);
if (m_index >= m_itemList.size()) { if (m_index >= int(m_itemList.size())) {
qWarning().noquote() << QString("%1 (\"%2\") has an index of %3 which does not exist.").arg(type(), name(), QString::number(m_index)); qWarning().noquote() << QString("%1 (\"%2\") has an index of %3 which does not exist.").arg(type(), name(), QString::number(m_index));
m_index = -1; m_index = -1;
} }