mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: replace Q_ASSERT by qWarning
These two Q_ASSERTs made no sense - their expression (a string literal) always evaluated to true. A qWarning() was intended here. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
3ed36b2ab5
commit
0c28821d28
1 changed files with 2 additions and 2 deletions
|
@ -262,7 +262,7 @@ int DiveEventItem::depthAtTime(int time)
|
|||
{
|
||||
QModelIndexList result = dataModel->match(dataModel->index(0, DivePlotDataModel::TIME), Qt::DisplayRole, time);
|
||||
if (result.isEmpty()) {
|
||||
Q_ASSERT("can't find a spot in the dataModel");
|
||||
qWarning("can't find a spot in the dataModel");
|
||||
hide();
|
||||
return DEPTH_NOT_FOUND;
|
||||
}
|
||||
|
@ -276,7 +276,7 @@ void DiveEventItem::recalculatePos(int speed)
|
|||
|
||||
QModelIndexList result = dataModel->match(dataModel->index(0, DivePlotDataModel::TIME), Qt::DisplayRole, internalEvent->time.seconds);
|
||||
if (result.isEmpty()) {
|
||||
Q_ASSERT("can't find a spot in the dataModel");
|
||||
qWarning("can't find a spot in the dataModel");
|
||||
hide();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue