From 0f88ae7718263d6cadcbdb1870eb4c4589b362e9 Mon Sep 17 00:00:00 2001 From: Alexander Oster Date: Wed, 22 Jul 2020 00:59:42 +0200 Subject: [PATCH 1/2] Fixed issue101 (#111) Co-authored-by: Alexander Oster --- Source/buildimplementationcpp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/buildimplementationcpp.go b/Source/buildimplementationcpp.go index 7aabc8bc..61c440a4 100644 --- a/Source/buildimplementationcpp.go +++ b/Source/buildimplementationcpp.go @@ -1533,7 +1533,7 @@ func generatePrePostCallCPPFunctionCode(component ComponentDefinition, method Co postCallCode = append(postCallCode, fmt.Sprintf("*%s = %s->GetHandle();", variableName, outVarName)); callParameters = callParameters + outVarName } else { - preCallCode = append(preCallCode, fmt.Sprintf("%s* pBase%s(nullptr);", IBaseClassName, param.ParamName)) + preCallCode = append(preCallCode, fmt.Sprintf("I%s* pBase%s(nullptr);", paramClassName, param.ParamName)) postCallCode = append(postCallCode, fmt.Sprintf("*%s = (%s*)(pBase%s);", variableName, IBaseClassName, param.ParamName)); callParameters = callParameters + "pBase" + param.ParamName } From 04db9ab917afd695661b45379a847daeb9d2e141 Mon Sep 17 00:00:00 2001 From: Alexander Oster Date: Wed, 22 Jul 2020 01:51:24 +0200 Subject: [PATCH 2/2] Fixed issue101 (#114) Co-authored-by: Alexander Oster