Add [[nodiscard]] attribute to wxStandardPaths::AppendAppInfo()
It doesn't make sense to call this function and ignore its return value, but it may happen accidentally as it might seem that it modifies its parameter.
This commit is contained in:
parent
d56cf71466
commit
d1e223d531
1 changed files with 1 additions and 0 deletions
|
|
@ -186,6 +186,7 @@ public:
|
|||
bool UsesAppInfo(int info) const { return (m_usedAppInfo & info) != 0; }
|
||||
|
||||
// append application information determined by m_usedAppInfo to dir
|
||||
wxNODISCARD
|
||||
wxString AppendAppInfo(const wxString& dir) const;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue