From 3be51fe651f7cf1487d5c02389cd72303e8c6b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Mon, 17 Jun 2024 14:40:59 +0200 Subject: [PATCH] Remove superfluous const in casts of function arguments by value. (#1905) --- VulkanHppGenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 05619e5..9501f76 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -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; } ) );