Uploaded image for project: 'DRP 2-D Pipeline'
  1. DRP 2-D Pipeline
  2. PIPE2D-195

In .cc files please change return value of {{bool set...(...)}} functions to void if they can't return false

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Won't Fix (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1.5

      Description

      Some set... functions in .cc files have the return type bool, some have void. Some throw an error if the position where the object should be set in a vector is invalid, some return false. Sometimes the returned bool is checked whether it's true or false. Some functions, like e.g. Spectra::setSpectrum return bool even though they cannot return false but throw an error instead. Please make all this consistent.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aritter aritter
                Reporter:
                aritter aritter
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: