QSqlTableModel: remove unnecessary parameter from setSubmitted()
Change-Id: I6d23788163ffd6ba7a8f01ed40910d861ff92703 Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
This commit is contained in:
parent
50ca45f059
commit
50f6cf6e48
@ -684,7 +684,7 @@ bool QSqlTableModel::submitAll()
|
||||
Q_ASSERT_X(false, "QSqlTableModel::submitAll()", "Invalid cache operation");
|
||||
break;
|
||||
}
|
||||
it.value().setSubmitted(true);
|
||||
it.value().setSubmitted();
|
||||
}
|
||||
|
||||
return select();
|
||||
|
@ -115,7 +115,7 @@ public:
|
||||
m_rec.setGenerated(c, true);
|
||||
}
|
||||
inline bool submitted() const { return m_submitted; }
|
||||
inline void setSubmitted(bool b) { m_submitted = b; }
|
||||
inline void setSubmitted() { m_submitted = true; }
|
||||
private:
|
||||
Op m_op;
|
||||
QSqlRecord m_rec;
|
||||
|
Loading…
Reference in New Issue
Block a user