forked from qt-creator/qt-creator
Debugger: Fix MSVC warning
Implicit cast from size_t to int. Change-Id: I8e53a6511afa4a3435f571217d736725771fef9c Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
61501042bc
commit
8457949dbc
@@ -2008,7 +2008,7 @@ bool WatchHandler::insertItem(WatchItem *item)
|
|||||||
|
|
||||||
bool found = false;
|
bool found = false;
|
||||||
const std::vector<TreeItem *> siblings(parent->begin(), parent->end());
|
const std::vector<TreeItem *> siblings(parent->begin(), parent->end());
|
||||||
for (int row = 0, n = siblings.size(); row < n; ++row) {
|
for (int row = 0, n = int(siblings.size()); row < n; ++row) {
|
||||||
if (static_cast<WatchItem *>(siblings[row])->iname == item->iname) {
|
if (static_cast<WatchItem *>(siblings[row])->iname == item->iname) {
|
||||||
m_model->destroyItem(parent->childAt(row));
|
m_model->destroyItem(parent->childAt(row));
|
||||||
parent->insertChild(row, item);
|
parent->insertChild(row, item);
|
||||||
|
Reference in New Issue
Block a user