Application: make a variable constexpr.

This commit is contained in:
Guillaume Jacquemin 2024-12-08 20:34:05 +01:00
parent e425c81db6
commit a3c2865e68
Signed by: williamjcm
SSH key fingerprint: SHA256:AYLOg+iTV0ElElnlu4vqM4edFazVdRiuQB0Y5LoKc4A

View file

@ -324,7 +324,7 @@ Application::drawWeaponEditor(GameObjects::Weapon& weapon) {
return;
}
static Containers::StringView labels[] {
static constexpr Containers::StringView labels[] {
#define c(enumerator, strenum, name) name,
#include "../Maps/WeaponTypes.hpp"
#undef c