Remove clamp macro
Doesn't really need to exist since all it's doing is inlining std::clamp.
This commit is contained in:
+1
-1
@@ -163,7 +163,7 @@ void HighScoreImpl::LoadFromNode( const XNode *pNode )
|
||||
pNode->GetChildValue( "Disqualified", bDisqualified);
|
||||
|
||||
// Validate input.
|
||||
grade = clamp( grade, Grade_Tier01, Grade_Failed );
|
||||
grade = std::clamp( grade, Grade_Tier01, Grade_Failed );
|
||||
}
|
||||
|
||||
REGISTER_CLASS_TRAITS( HighScoreImpl, new HighScoreImpl(*pCopy) )
|
||||
|
||||
Reference in New Issue
Block a user