Commit 9ca7946b authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Remove unneeded explicit down-cast

parent b518395c
......@@ -166,7 +166,7 @@ VariableTree::VariableTree(IDebugController *controller,
setAllColumnsShowFocus(true);
// setting proxy model
m_model = static_cast<TreeModel *>(controller->variableCollection());
m_model = controller->variableCollection();
m_proxy->setSourceModel(m_model);
setModel(m_proxy);
setSortingEnabled(true);
......
......@@ -60,10 +60,10 @@ WorkingSetToolTipWidget::WorkingSetToolTipWidget(QWidget* parent, WorkingSet* se
layout->setMargin(0);
connect(static_cast<Sublime::MainWindow*>(mainwindow)->area(),
connect(mainwindow->area(),
&Sublime::Area::viewAdded, this, &WorkingSetToolTipWidget::updateFileButtons,
Qt::QueuedConnection);
connect(static_cast<Sublime::MainWindow*>(mainwindow)->area(),
connect(mainwindow->area(),
&Sublime::Area::viewRemoved, this, &WorkingSetToolTipWidget::updateFileButtons,
Qt::QueuedConnection);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment