Skip to content

Commit

Permalink
Refs #10408 Use scoped_ptr in HintingLineEditFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Oct 24, 2014
1 parent ecdb0c4 commit 773f846
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -41,10 +41,7 @@ namespace MantidQt
{
public:
HintingLineEditFactory(HintStrategy* hintStrategy) : m_strategy(hintStrategy) {};
virtual ~HintingLineEditFactory()
{
delete m_strategy;
};
virtual ~HintingLineEditFactory() {};
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
Q_UNUSED(option);
Expand All @@ -56,7 +53,7 @@ namespace MantidQt
return editor;
}
protected:
HintStrategy* m_strategy;
boost::scoped_ptr<HintStrategy> m_strategy;
};
}
}
Expand Down

0 comments on commit 773f846

Please sign in to comment.