mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-21 20:00:11 +00:00
Remove superfluous const in casts of function arguments by value. (#1905)
This commit is contained in:
parent
bfb16c9781
commit
3be51fe651
@ -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; } ) );
|
||||
|
Loading…
Reference in New Issue
Block a user