Skip to content

Commit

Permalink
Update MoltenVK/MoltenVK/Utility/MVKBaseObject.h
Browse files Browse the repository at this point in the history
Use constexpr instead of inline const.
  • Loading branch information
billhollings committed May 4, 2024
1 parent ac6702a commit a6a44a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions MoltenVK/MoltenVK/Utility/MVKBaseObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit a6a44a7

Please sign in to comment.