Remove superfluous const in casts of function arguments by value. (#1905)

This commit is contained in:
Andreas Süßenbach 2024-06-17 14:40:59 +02:00 committed by GitHub
parent bfb16c9781
commit 3be51fe651
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3020,7 +3020,8 @@ std::string VulkanHppGenerator::generateCallArgumentEnhancedValue(
}
else
{
argument = "static_cast<" + param.type.compose( "" ) + ">( " + param.name + " )";
assert( param.type.isValue() );
argument = "static_cast<" + param.type.type + ">( " + param.name + " )";
}
// check if this param is used as the stride of an other param
assert( std::none_of( params.begin(), params.end(), [paramIndex]( ParamData const & pd ) { return pd.strideParam.second == paramIndex; } ) );