Fixed compilation with Nim v0.19.0

This commit is contained in:
Filippo Cucchetto 2018-10-14 22:19:38 +02:00
parent 57bc70dcff
commit 06d9be8ed3
1 changed files with 1 additions and 3 deletions

View File

@ -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 == "":