Describe the Task
SonarQube flags many instances of the MET C++ code managing its own memory through calls to new and delete. The std::unique_ptr() silences these warnings and helps to prevent memory leaks.
While the VarInfo class hierarchy was recently updated to make use of unique_ptr, recommend making similar changes to the Met2dDataFile class hierarchy.
Time Estimate
1 day
Sub-Issues
Consider breaking the task down into sub-issues.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Milestone and Projects
Define Related Issue(s)
Consider the impact to the other METplus components.
Task Checklist
See the METplus Workflow for details.
Describe the Task
SonarQube flags many instances of the MET C++ code managing its own memory through calls to
newanddelete. The std::unique_ptr() silences these warnings and helps to prevent memory leaks.While the
VarInfoclass hierarchy was recently updated to make use ofunique_ptr, recommend making similar changes to theMet2dDataFileclass hierarchy.Time Estimate
1 day
Sub-Issues
Consider breaking the task down into sub-issues.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Milestone and Projects
Define Related Issue(s)
Consider the impact to the other METplus components.
No impacts.
Task Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>Pull request:
feature <Issue Number> <Description>Select: Reviewer(s) and Development issue
Select: Milestone as the next official version
Select: MET-X.Y Development project for development toward the next coordinated release