diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-20 12:08:22 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-10-21 19:57:49 +0300 |
commit | 6ed5db4d51e3852916db64f2220004dbd04847fc (patch) | |
tree | cab2ff5b7298b4097668832fd69e4e6c6cdd5c59 /mobile-widgets/qml | |
parent | 9829e49815de1b81b5c9848b71eaa810faab2bcf (diff) | |
download | subsurface-6ed5db4d51e3852916db64f2220004dbd04847fc.tar.gz |
Dive list: remove three unnecessary instances of qobject_cast<>.
In DiveListView, the result of model() was dynamically cast to
QSortFilterProxyModel. But then, only the virtual match() function
was used. The whole point of virtual functions is that you can
cast them on the base-class and it will execute the function of
the derived class. Thus, remove these casts and operate directly
on the QAbstractItemModel base class.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qml')
0 files changed, 0 insertions, 0 deletions