From a6a44a78c1c9066b217cc6633b64e9347248aa78 Mon Sep 17 00:00:00 2001 From: Bill Hollings Date: Sat, 4 May 2024 15:15:39 -0400 Subject: [PATCH] Update MoltenVK/MoltenVK/Utility/MVKBaseObject.h Use constexpr instead of inline const. --- MoltenVK/MoltenVK/Utility/MVKBaseObject.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/MoltenVK/MoltenVK/Utility/MVKBaseObject.h b/MoltenVK/MoltenVK/Utility/MVKBaseObject.h index 0f268f218..84fb292e0 100644 --- a/MoltenVK/MoltenVK/Utility/MVKBaseObject.h +++ b/MoltenVK/MoltenVK/Utility/MVKBaseObject.h @@ -225,10 +225,8 @@ static inline const MVKConfiguration& mvkGetMVKConfig(MVKBaseObject* mvkObj) { return mvkObj ? mvkObj->getMVKConfig() : getGlobalMVKConfig(); } -/** - * Returns the reporting level string associated with the specified MoltenVK log level. - */ -static inline const char* mvkGetReportingLevelString(MVKConfigLogLevel logLevel) { +/** Returns the reporting level string associated with the specified MoltenVK log level. */ +static constexpr char* mvkGetReportingLevelString(MVKConfigLogLevel logLevel) { switch (logLevel) { case MVK_CONFIG_LOG_LEVEL_ERROR: return "mvk-error"; case MVK_CONFIG_LOG_LEVEL_WARNING: return "mvk-warn";