From 84b219ac640714ca4e8fdac9bd76b4041ca18fc8 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Thu, 30 Jan 2025 22:14:45 +0000 Subject: [PATCH] Codefix: EngineNameContext uses enum class naming but wasn't. (#13417) This could have caused namespace conflicts with its values. --- src/engine_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine_type.h b/src/engine_type.h index 6ea5696619..51427541e6 100644 --- a/src/engine_type.h +++ b/src/engine_type.h @@ -190,7 +190,7 @@ enum EngineFlags : uint8_t { /** * Contexts an engine name can be shown in. */ -enum EngineNameContext : uint8_t { +enum class EngineNameContext : uint8_t { Generic = 0x00, ///< No specific context available. VehicleDetails = 0x11, ///< Name is shown in the vehicle details GUI. PurchaseList = 0x20, ///< Name is shown in the purchase list (including autoreplace window 'Available vehicles' panel).