mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
genbindings: skip return types for more operator= overloads
This commit is contained in:
parent
e3a1041031
commit
38ceda38ad
@ -492,7 +492,10 @@ func parseMethod(node map[string]interface{}, mm *CppMethod) error {
|
||||
|
||||
// Change operator= (assign) to always return void. By default it returns *self which
|
||||
// is a trick for more ergnonomic C++ that has no real effect
|
||||
if mm.MethodName == "operator=" {
|
||||
if mm.MethodName == "operator=" ||
|
||||
mm.MethodName == "operator&=" || // qbitarray.h
|
||||
mm.MethodName == "operator|=" || // qbitarray.h
|
||||
mm.MethodName == "operator^=" { // qbitarray.h
|
||||
mm.ReturnType = CppParameter{ParameterType: "void"}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user