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:
Vadim Zeitlin 2024-01-02 02:16:05 +01:00
parent d56cf71466
commit d1e223d531

View file

@ -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;