Antares_Simulator icon indicating copy to clipboard operation
Antares_Simulator copied to clipboard

Remove manual dynamic allocations

Open flomnes opened this issue 7 months ago • 0 comments

Dynamic allocations are considered vulnerabilities in our internal SonarCloud quality profile.

  • 230 matches on = new
  • 166 matches on delete[]
  • 152 matches on delete (a few false positives)
  • 2 matches on malloc and free

Some have already been replaced by std::vector. Other options include std::shared_ptr or std::unique_ptr.

flomnes avatar Jul 09 '24 09:07 flomnes