Make File::GetDisplayName() a trivial accessor

Don't escape any markdown characters or return the name field if the
display name is empty. They're really presentation issues so are left to
the UI.
This commit is contained in:
Oliver Hamlet
2022-02-19 13:45:53 +00:00
parent 77decb26c4
commit d4de531de5
6 changed files with 7 additions and 76 deletions
+1 -6
View File
@@ -84,12 +84,7 @@ public:
/**
* Get the display name of the file.
*
* If the File was constructed with an empty display string, the name field
* will be returned instead, with any `ASCII punctuation characters
* <https://github.github.com/gfm/#ascii-punctuation-character>`_ escaped.
* Escaping is not performed if returning the value of the display string.
* @return The file's display name or filename.
* @return The file's display name.
*/
LOOT_API std::string GetDisplayName() const;