aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/valgrind/callgrindcostview.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2018-12-10 08:11:18 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2018-12-10 18:54:02 +0000
commit00ec6dfb5d7e156cb87d0836f841ff9aef963618 (patch)
treec1c2b82e55115b48e0e8fd701ab34eba2e5d6ffd /src/plugins/valgrind/callgrindcostview.cpp
parent390a227df672a227de4539ad44da46cf773d5810 (diff)
Valgrind: Modernize
modernize-* Change-Id: I6db60dce78cf2575e36caa597b1f095adba34fd9 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/valgrind/callgrindcostview.cpp')
-rw-r--r--src/plugins/valgrind/callgrindcostview.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/valgrind/callgrindcostview.cpp b/src/plugins/valgrind/callgrindcostview.cpp
index 36a52feecbe..e6a62da6e0a 100644
--- a/src/plugins/valgrind/callgrindcostview.cpp
+++ b/src/plugins/valgrind/callgrindcostview.cpp
@@ -55,16 +55,14 @@ CostView::CostView(QWidget *parent)
setRootIsDecorated(false);
}
-CostView::~CostView()
-{
-}
+CostView::~CostView() = default;
void CostView::setModel(QAbstractItemModel *model)
{
- QTreeView::setModel(model);
+ BaseTreeView::setModel(model);
forever {
- QAbstractProxyModel *proxy = qobject_cast<QAbstractProxyModel *>(model);
+ auto proxy = qobject_cast<const QAbstractProxyModel *>(model);
if (!proxy)
break;
model = proxy->sourceModel();