From 11b851dc203eba560d78c4b2e69a4bdea32ea0ae Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Mon, 19 Apr 2021 10:03:58 +0200 Subject: [PATCH] Correct capitalization of allocateInitializer used in vector-returning functions with provided allocator. --- VulkanHppGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 2b72fc2..f1f1fc2 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -5263,7 +5263,7 @@ std::string VulkanHppGenerator::constructCommandResultGetVector( std::string con return replaceWithMap( functionTemplate, - { { "allocateInitializer", withAllocator ? ( ", " + vectorElementType + "Allocator" ) : "" }, + { { "allocateInitializer", withAllocator ? ( ", " + startLowerCase( allocatorType ) ) : "" }, { "allocatorType", allocatorType }, { "argumentList", argumentList }, { "callArguments", @@ -5355,7 +5355,7 @@ std::string return replaceWithMap( functionTemplate, - { { "allocateInitializer", withAllocator ? ( ", " + vectorElementType + "Allocator" ) : "" }, + { { "allocateInitializer", withAllocator ? ( ", " + startLowerCase( allocatorType ) ) : "" }, { "allocatorType", allocatorType }, { "argumentList", argumentList }, { "callArguments",