Uploaded image for project: 'UGENE'
  1. UGENE
  2. UGENE-6418

Simplify formatName field related code in DocumentModel

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Story Points:
      2
    • Tests Type:
      Untestable
    • Affect Type:
      Userdefined

      Description

      In a DocumentFormat class there are a lot of code like this (for each supported format):
      virtual const QString& getFormatName() const

      {return formatName;}

      Some of the code uses static ::tr to get formatName, and all of the format repeat the same pattern:
      1. local field: formatName
      2. virtual getter function

      This all can be simplified to non-virtual getter and a field on the base class.
      Static ::tr calls must also be removed.

        Attachments

          Activity

            People

            Assignee:
            yalgaer Yuliya Algaer
            Reporter:
            yalgaer Yuliya Algaer
            Assigned Tester:
            Aleksey Tiunov [X] (Inactive)
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: