diff options
author | Orgad Shaneh <[email protected]> | 2017-03-14 16:41:00 +0200 |
---|---|---|
committer | Orgad Shaneh <[email protected]> | 2017-03-15 12:18:36 +0000 |
commit | 8457949dbc48cde6eb229743757b1c943973635c (patch) | |
tree | e53c407adfa9049e403e8b3f3eab2bb9b306de79 /src/plugins/debugger/watchhandler.cpp | |
parent | 61501042bcf6c3e0e22ee3b8294b1752846b8c84 (diff) |
Debugger: Fix MSVC warning
Implicit cast from size_t to int.
Change-Id: I8e53a6511afa4a3435f571217d736725771fef9c
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index f60cbf59233..f14d82e8caa 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -2008,7 +2008,7 @@ bool WatchHandler::insertItem(WatchItem *item) bool found = false; 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) { m_model->destroyItem(parent->childAt(row)); parent->insertChild(row, item); |