mirror of https://github.com/status-im/nimqml.git
Cleaned up warnings through nim check
This commit is contained in:
parent
7fa3bdd4f2
commit
013d54c87e
|
@ -1,4 +1,4 @@
|
|||
import os, strutils
|
||||
import strutils
|
||||
|
||||
const dynLibName =
|
||||
case system.hostOS:
|
||||
|
|
|
@ -4,7 +4,6 @@ import macros
|
|||
import strutils
|
||||
import sequtils
|
||||
import typetraits
|
||||
import tables
|
||||
|
||||
|
||||
type
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue