-
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
In a DocumentFormat class there are a lot of code like this (for each supported format):
virtual const QString& getFormatName() const
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.