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";