mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
genbindings: more type casts for pvoid types
This commit is contained in:
parent
bc3bfa88ad
commit
545a819f81
@ -98,6 +98,11 @@ func emitParametersCABI2CppForwarding(params []CppParameter) (preamble string, f
|
||||
// Dereference the passed-in pointer
|
||||
tmp = append(tmp, "*static_cast<"+p.ParameterType+"*>("+p.ParameterName+")")
|
||||
|
||||
} else if p.QtClassType() && p.Pointer {
|
||||
// We need this static_cast<> anyway to convert from PQt (void*) to
|
||||
// the real Qt type
|
||||
tmp = append(tmp, "static_cast<"+p.ParameterType+"*>("+p.ParameterName+")")
|
||||
|
||||
} else {
|
||||
tmp = append(tmp, p.ParameterName)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user