QSqlTableModel: remove unnecessary parameter from setSubmitted()

Change-Id: I6d23788163ffd6ba7a8f01ed40910d861ff92703
Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
This commit is contained in:
Mark Brand 2012-02-14 16:51:20 +01:00 committed by Qt by Nokia
parent 50ca45f059
commit 50f6cf6e48
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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;