summaryrefslogtreecommitdiffstats
path: root/core/connectionlistmodel.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-10 09:50:57 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-10 10:53:03 -0700
commit1fd8ea9d499ccb7adacc5f728ad69ba5cb5c60f8 (patch)
tree734a6bde1451eb88342cf94c98cbdd6816f33467 /core/connectionlistmodel.cpp
parent3f3869ff650229e99262ee07b14e1d14ca973d10 (diff)
downloadsubsurface-1fd8ea9d499ccb7adacc5f728ad69ba5cb5c60f8.tar.gz
cleanup: directly return from DivePictureModel::data()
Instead of assigning to a QVariant ret and returning at the end, return directly in the various switch-cases. This makes the code more readable, and is more idiomatic C++, as it avoids unnecessary copies. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/connectionlistmodel.cpp')
0 files changed, 0 insertions, 0 deletions