mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +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