mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +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
|
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
|
// 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; } ) );
|
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