Uploaded image for project: '1D Redmine '
  1. 1D Redmine
  2. REDMINE1D-159

[RM-7008] [refactor] CLineModelElementList m_Elements

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Normal
    • Resolution: Unresolved
    • Labels:
      None

      Description

      Created on 2022-01-24 15:07:58 by Didier Vibert. % Done: 0

      m_Elements is a vector of shared_ptr to CLineModelElement

      the pointer is useless here, it could simply be a vector of CLineModelElement.

      The getter (operator[]) can just return the CLineModelElement by ref (may need a cons getter as well).
      The setter is the CLineModelElementList::push_back function which is always called with a new CLineModelElement allocation : it can thus be called with a CLineModelElement rvalue ref that can be moved inside.

        Attachments

          Activity

            People

            • Assignee:
              r2j.migrate Redmine-Jira Migtation
              Reporter:
              r2j.migrate Redmine-Jira Migtation
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: