Cleaned up warnings through nim check

This commit is contained in:
Filippo Cucchetto 2019-09-29 22:52:46 +02:00
parent 7fa3bdd4f2
commit 013d54c87e
3 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import os, strutils
import strutils
const dynLibName =
case system.hostOS:

View File

@ -4,7 +4,6 @@ import macros
import strutils
import sequtils
import typetraits
import tables
type

View File

@ -94,8 +94,8 @@ proc headerDataCallback(modelPtr: pointer, section: cint, orientation: cint, rol
proc createIndex*(self: QAbstractItemModel, row: int, column: int, data: pointer): QModelIndex =
## Create a new QModelIndex
debugMsg("QAbstractItemModel", "createIndex")
let result = dos_qabstractitemmodel_createIndex(self.vptr.DosQAbstractItemModel, row.cint, column.cint, data)
return newQModelIndex(result, Ownership.Take)
let index = dos_qabstractitemmodel_createIndex(self.vptr.DosQAbstractItemModel, row.cint, column.cint, data)
result = newQModelIndex(index, Ownership.Take)
method index*(self: QAbstractItemModel, row: int, column: int, parent: QModelIndex): QModelIndex {.base.} =
doAssert(false, "QAbstractItemModel::index is pure virtual")