QSqlTableModel: avoid extra QMap lookup
authorMark Brand <mabrand@mabrand.nl>
Wed, 15 Feb 2012 09:22:15 +0000 (10:22 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 23 Feb 2012 22:42:59 +0000 (23:42 +0100)
commit3a863280dc7f1845bf3daa74fe235b1df9bc26ae
tree13e61ab2a353ad24108d1989b81cc8fedc91a57a
parent5d516234bef7bf9d86cb1dbb1cddeb7e4c8fc8ec
QSqlTableModel: avoid extra QMap lookup

The consensus on #qt-labs seems to be that there is little or no
point in checking with contains() before using value(), even if
the map does not contain the key in most cases.

Change-Id: I34740a91d5c3af65e20937a5ae3b4bab32406440
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
src/sql/models/qsqltablemodel.cpp