Ticket #7742 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

Remove CustomUnits

Reported by: Samuel Jackson Owned by: Samuel Jackson
Priority: major Milestone: Release 3.0
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester: Russell Taylor

Description

There is a type of Unit called CustomUnit defined in Unit.h which does exactly the same thing as Label and should be removed. The class appears to only be used in the ConvertAxisByFormula algorithm.

Change History

comment:1 Changed 7 years ago by Samuel Jackson

  • Status changed from new to inprogress

Removed CustomUnits from project.

Refs #7742

Changeset: 470e89a4171fcdfdb501b342dc32b257b458fec1

comment:2 Changed 7 years ago by Samuel Jackson

To Test

CustomUnits has been removed from the project as it provided the same functionality as Label. Do a code inspection to check that the changes are reasonable. Also try running ConvertAxisByFormula with some sensible input and check that changing the units works as expected.

comment:3 Changed 7 years ago by Samuel Jackson

  • Status changed from inprogress to verify
  • Resolution set to fixed

comment:4 Changed 7 years ago by Samuel Jackson

  • Milestone changed from Backlog to Release 3.0

comment:5 Changed 7 years ago by Russell Taylor

  • Status changed from verify to verifying
  • Tester set to Russell Taylor

comment:6 Changed 7 years ago by Russell Taylor

  • Status changed from verifying to reopened
  • Resolution fixed deleted

The new Label constructor should consume its string arguments by reference-to-const (i.e. const std::string&). There should be a unit test for the constructor (I appreciate that there are none at all for the Label unit at present - feel free, though not obliged, to add them for methods other than the one you added).

comment:7 Changed 7 years ago by Samuel Jackson

  • Status changed from reopened to inprogress

Changed constructor to pass by ref to const.

Refs #7742

Changeset: f0d84887bea73ac690ad9223f5731cf3538cd36d

comment:8 Changed 7 years ago by Samuel Jackson

Added unit test for Label class.

Refs #7742

Changeset: f190a4c17edfd61b6b07c0803804f03192764287

comment:9 Changed 7 years ago by Samuel Jackson

  • Status changed from inprogress to verify
  • Resolution set to fixed

comment:10 Changed 7 years ago by Russell Taylor

  • Status changed from verify to verifying

comment:11 Changed 7 years ago by Russell Taylor

  • Status changed from verifying to closed

Good stuff.

comment:12 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 8587

Note: See TracTickets for help on using tickets.