Revert "Janitor : Fix memory leak"

This reverts commit 88d961e516.
This commit is contained in:
Magne Sjaastad 2019-11-20 09:07:59 +01:00
parent 5fae9646ae
commit d079f233a4
2 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@ RiuQwtPlotCurve::RiuQwtPlotCurve( const QString& title )
m_symbolSkipPixelDistance = 10.0f; m_symbolSkipPixelDistance = 10.0f;
m_errorBars = std::unique_ptr<QwtPlotIntervalCurve>( new QwtPlotIntervalCurve() ); m_errorBars = new QwtPlotIntervalCurve();
m_errorBars->setStyle( QwtPlotIntervalCurve::CurveStyle::NoCurve ); m_errorBars->setStyle( QwtPlotIntervalCurve::CurveStyle::NoCurve );
m_errorBars->setSymbol( new QwtIntervalSymbol( QwtIntervalSymbol::Bar ) ); m_errorBars->setSymbol( new QwtIntervalSymbol( QwtIntervalSymbol::Bar ) );
m_errorBars->setItemAttribute( QwtPlotItem::Legend, false ); m_errorBars->setItemAttribute( QwtPlotItem::Legend, false );

View File

@ -153,7 +153,7 @@ private:
float m_symbolSkipPixelDistance; float m_symbolSkipPixelDistance;
bool m_showErrorBars; bool m_showErrorBars;
std::unique_ptr<QwtPlotIntervalCurve> m_errorBars; QwtPlotIntervalCurve* m_errorBars;
QwtPlot* m_attachedToPlot; QwtPlot* m_attachedToPlot;
bool m_blackAndWhiteLegendIcon; bool m_blackAndWhiteLegendIcon;