genbindings/static: fix not applying static for overloads

This commit is contained in:
mappu 2024-08-18 16:41:57 +12:00
parent b3ef457f7e
commit 6928a87b4b

View File

@ -33,6 +33,8 @@ func astTransformOptional(parsed *CppParsedHeader) {
OverrideMethodName: m.MethodName, OverrideMethodName: m.MethodName,
ReturnType: m.ReturnType, ReturnType: m.ReturnType,
Parameters: nil, Parameters: nil,
IsSignal: m.IsSignal,
IsStatic: m.IsStatic,
} }
dupMethod.Parameters = append(dupMethod.Parameters, m.Parameters[0:x+1]...) dupMethod.Parameters = append(dupMethod.Parameters, m.Parameters[0:x+1]...)
c.Methods = append(c.Methods, dupMethod) // TODO can we insert them next, instead of at the end? c.Methods = append(c.Methods, dupMethod) // TODO can we insert them next, instead of at the end?