forked from qt-creator/qt-creator
QmlJSEditor: Remove redundant null test
Change-Id: I923fc58d1d7d305033584b33668915a6e7daba36 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
e7a7c02b4d
commit
0360017b2f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user