Ticket #11194 (new)

Opened 6 years ago

Last modified 5 years ago

RefAxis wastes memory by calling NumericAxis constructor.

Reported by: Steven Hahn Owned by:
Priority: major Milestone: Backlog
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

RefAxis inherits NumericAxis and on construction calls the NumericAxis constructor. The NumericAxis constructor then initializes std::vector<double>m_values of length l. This vector is unused by RefAxis, whose values are stored in the parent workspace.

The larger issue is cases like in ticket #1179 ( http://trac.mantidproject.org/mantid/ticket/11179 ) where a member function inherited from NumericAxis used m_values instead of the parent workspace. In this particular case, the two were of different length.

Change History

comment:1 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 12033

Note: See TracTickets for help on using tickets.