QmlJSEditor: Remove redundant null test

Change-Id: I923fc58d1d7d305033584b33668915a6e7daba36
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Orgad Shaneh
2014-05-19 23:37:06 +03:00
committed by Orgad Shaneh
parent e7a7c02b4d
commit 0360017b2f

View File

@@ -111,10 +111,8 @@ QuickToolBar::QuickToolBar(QObject *parent)
QuickToolBar::~QuickToolBar()
{
//if the pane was never activated the widget is not in a widget tree
if (!m_widget.isNull())
delete m_widget.data();
m_widget = 0;
delete m_widget.data();
m_widget = 0;
}
void QuickToolBar::apply(TextEditor::BaseTextEditor *editor, Document::Ptr document, const ScopeChain *scopeChain, AST::Node *node, bool update, bool force)