Ticket #6481 (closed: duplicate)
Use shared_ptrs in MatrixWorkspace get mapping functions
Reported by: | Martyn Gigg | Owned by: | Russell Taylor |
---|---|---|---|
Priority: | critical | Milestone: | Release 2.5 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Anders Markvardsen |
Description (last modified by Russell Taylor) (diff)
Ticket #6157 highlighted another accidental misuse of these functions on MatrixWorkspace:
index2spec_map * getWorkspaceIndexToSpectrumMap() const; spec2index_map * getSpectrumToWorkspaceIndexMap() const; index2detid_map * getWorkspaceIndexToDetectorIDMap() const; detid2index_map * getDetectorIDToWorkspaceIndexMap( bool throwIfMultipleDets ) const;
If we are going to keep them they should at least return shared_ptrs.
Change History
comment:2 Changed 8 years ago by Russell Taylor
- Owner set to Russell Taylor
- Status changed from new to verify
- Resolution set to duplicate
This turns out to be a duplicate of #6198.
comment:3 Changed 8 years ago by Anders Markvardsen
- Status changed from verify to verifying
- Tester set to Anders Markvardsen
Note: See
TracTickets for help on using
tickets.
Agreed, though it would be nice if they could go away entirely. The first two should go away under #6191.