From 05988ce31c2969a7ead739d01233ca4583cf06d1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 27 Mar 2020 18:56:34 -0400 Subject: [PATCH] CScannableParameters: Mark CScannableParameters as constexpr This only contains a single member, so this can trivially be marked constexpr. --- Runtime/World/CScannableParameters.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/World/CScannableParameters.hpp b/Runtime/World/CScannableParameters.hpp index 93a6a4739..8977a0e42 100644 --- a/Runtime/World/CScannableParameters.hpp +++ b/Runtime/World/CScannableParameters.hpp @@ -8,8 +8,8 @@ class CScannableParameters { CAssetId x0_scanId; public: - CScannableParameters() = default; - CScannableParameters(CAssetId id) : x0_scanId(id) {} - CAssetId GetScanId() const { return x0_scanId; } + constexpr CScannableParameters() = default; + constexpr explicit CScannableParameters(CAssetId id) : x0_scanId(id) {} + [[nodiscard]] constexpr CAssetId GetScanId() const { return x0_scanId; } }; } // namespace urde