mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-26 13:50:08 +00:00
Corrected inline if, which should be evaluated before writing output (#337)
This commit is contained in:
parent
96299b3a1f
commit
cd6e0a6a89
@ -2083,7 +2083,7 @@ void VulkanHppGenerator::writeArgumentPlainType(std::ostream & os, ParamData con
|
||||
if (paramData.type.type == "char")
|
||||
{
|
||||
// it's a const pointer to char -> it's a string -> get the data via c_str()
|
||||
os << parameterName << paramData.optional ? (" ? " + parameterName + "->c_str() : nullptr") : ".c_str()";
|
||||
os << parameterName << (paramData.optional ? (" ? " + parameterName + "->c_str() : nullptr") : ".c_str()");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user