mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user