Use unique_ptr for owning pointers in Sorter

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • Execution Team 2024-12-23, Execution Team 2025-01-06, Execution Team 2025-01-20
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently Sorter has a number of functions which return bare pointers which are stored in a unique_ptr by the caller rather than returning a unique_ptr, and even when unique_ptr is used the objects are often allocated with new rather than make_unique.

      There are also some unnecessary uses of shared_ptr that don't have any shared ownership going on.

            Assignee:
            Thomas Goyne
            Reporter:
            Thomas Goyne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: