1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add nodiscard attribute to helper functions where it makes sense

This commit is contained in:
sfan5 2025-03-26 21:56:09 +01:00
parent e6acc4e7ed
commit ae0f955a0e
10 changed files with 71 additions and 29 deletions

View file

@ -24,4 +24,4 @@ bool string_to_enum(const EnumString *spec, T &result, std::string_view str)
return ret;
}
const char *enum_to_string(const EnumString *spec, int num);
[[nodiscard]] const char *enum_to_string(const EnumString *spec, int num);