Ticket #8521 (assigned)

Opened 7 years ago

Last modified 5 years ago

Make LoadParameterFile access instrument in proper manner

Reported by: Karl Palmen Owned by:
Priority: major Milestone: Backlog
Component: Framework Keywords: maintenance
Cc: anders.markvardsen@…, martyn.gigg@…, taylorrj@…, zhouw@… Blocked By:
Blocking: Tester:

Description

Line 107 in LoadParameterFile has a dodgy pointer cast as explained in comment above it

  // TODO: Refactor to remove the need for the const cast
  Instrument_sptr instrument = boost::const_pointer_cast<Instrument>(localWorkspace->getInstrument()->baseInstrument());

This ticket is basically that TODO.

It has not yet caused a known problem, but the functionality of the code is useful for putting parameters into a workspace (e.g. from a fullprof file).

Change History

comment:1 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned

bulk move to assigned at the into of the triage step

comment:2 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 9365

Note: See TracTickets for help on using tickets.