summaryrefslogtreecommitdiff
path: root/src/plugins/perfprofiler
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2020-02-24 10:24:11 +0200
committerOrgad Shaneh <orgads@gmail.com>2020-02-25 12:19:53 +0000
commitdd0efea95df8f6fe919ff32b598135c914f41153 (patch)
treee1857fc8d7394eeb15171784f0bc9da128c16ca2 /src/plugins/perfprofiler
parent9b5e6424006305f50fe9d0c980e2d50c2da4d522 (diff)
downloadqt-creator-dd0efea95df8f6fe919ff32b598135c914f41153.tar.gz
Misc: Fix MSVC warnings
C4573: the usage of 'QObject::connect' requires the compiler to capture 'this' but the current default capture mode does not allow it and implicit conversions from size_t to int Change-Id: If9b4ba3103cadd5b2a38ba7072d05aa1488a87bb Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/perfprofiler')
-rw-r--r--src/plugins/perfprofiler/perfprofilerflamegraphmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/perfprofiler/perfprofilerflamegraphmodel.cpp b/src/plugins/perfprofiler/perfprofilerflamegraphmodel.cpp
index 49385fbaa9..d8ed9082b1 100644
--- a/src/plugins/perfprofiler/perfprofilerflamegraphmodel.cpp
+++ b/src/plugins/perfprofiler/perfprofilerflamegraphmodel.cpp
@@ -152,9 +152,9 @@ int PerfProfilerFlameGraphModel::rowCount(const QModelIndex &parent) const
{
if (parent.isValid()) {
Data *parentData = static_cast<Data *>(parent.internalPointer());
- return parentData->children.size();
+ return int(parentData->children.size());
}
- return m_stackBottom->children.size();
+ return int(m_stackBottom->children.size());
}
int PerfProfilerFlameGraphModel::columnCount(const QModelIndex &parent) const