mirror of https://github.com/status-im/nimqml.git
Fixed compilation with Nim v0.19.0
This commit is contained in:
parent
57bc70dcff
commit
06d9be8ed3
|
@ -102,7 +102,6 @@ proc fromQVariantConversion(x: string): string {.compiletime.} =
|
|||
proc toMetaType(x: string): string {.compiletime.} =
|
||||
## Convert a nim type to QMetaType
|
||||
case x
|
||||
of nil: result = "Void"
|
||||
of "": result = "Void"
|
||||
of "void": result = "Void"
|
||||
of "int": result = "Int"
|
||||
|
@ -434,8 +433,7 @@ proc generateSlotCall(slot: ProcInfo): string {.compiletime.} =
|
|||
var sequence: seq[string] = @[]
|
||||
|
||||
# Add return type
|
||||
if slot.returnType != nil and
|
||||
slot.returnType != "" and
|
||||
if slot.returnType != "" and
|
||||
slot.returnType != "void":
|
||||
let conversion = fromQVariantConversion(slot.returnType)
|
||||
if conversion == "":
|
||||
|
|
Loading…
Reference in New Issue