forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user