Q_OUTOFLINE_TEMPLATE Row Query::first()
{
skip(0);
RowList list = toList(1);
if (list.count())
return list.first();
else
return nullptr;
}
In file included from ../../Nut/src/database.cpp:42:0:
../../Nut/src/query.h: In instantiation of ‘Nut::Row Nut::Query::first() [with T = Nut::ChangeLogTable; Nut::Row = QSharedPointer]’:
../../Nut/src/database.cpp:283:21: required from here
../../Nut/src/query.h:380:16: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘Nut::Row {aka QSharedPointer}’
return nullptr;
^
Q_OUTOFLINE_TEMPLATE Row Query::first()
{
skip(0);
RowList list = toList(1);
}
In file included from ../../Nut/src/database.cpp:42:0: ../../Nut/src/query.h: In instantiation of ‘Nut::Row Nut::Query::first() [with T = Nut::ChangeLogTable; Nut::Row = QSharedPointer]’:
../../Nut/src/database.cpp:283:21: required from here
../../Nut/src/query.h:380:16: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘Nut::Row {aka QSharedPointer}’
return nullptr;
^