From 650cf0e11915957bad426650dad5a658ca7a03a1 Mon Sep 17 00:00:00 2001 From: Filippo Cucchetto Date: Mon, 22 Jul 2019 08:01:50 +0200 Subject: [PATCH] Some fixes with 0.20.2 --- examples/contactapp/contactlist.nim | 1 - src/nimqml/private/dotherside.nim | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/contactapp/contactlist.nim b/examples/contactapp/contactlist.nim index 6262652..b11e882 100644 --- a/examples/contactapp/contactlist.nim +++ b/examples/contactapp/contactlist.nim @@ -37,7 +37,6 @@ QtObject: case contactRole: of ContactRoles.FirstName: result = newQVariant(contact.firstName) of ContactRoles.Surname: result = newQVariant(contact.surname) - else: return method roleNames(self: ContactList): Table[int, string] = { ContactRoles.FirstName.int:"firstName", diff --git a/src/nimqml/private/dotherside.nim b/src/nimqml/private/dotherside.nim index 53a4316..a6537ef 100644 --- a/src/nimqml/private/dotherside.nim +++ b/src/nimqml/private/dotherside.nim @@ -20,9 +20,9 @@ type DosQVariant = distinct pointer DosQQmlContext = distinct pointer DosQQmlApplicationEngine = distinct pointer - DosQVariantArray {.unchecked.} = array[0..0, DosQVariant] + DosQVariantArray = UncheckedArray[DosQVariant] DosQMetaType = cint - DosQMetaTypeArray {.unchecked.} = array[0..0, DosQMetaType] + DosQMetaTypeArray = UncheckedArray[DosQMetaType] DosQUrl = distinct pointer DosQQuickView = distinct pointer DosQHashIntByteArray = distinct pointer