aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-02-18 15:20:38 +0100
committerUlf Hermann <ulf.hermann@qt.io>2020-02-19 09:29:10 +0100
commit9b5bd48fc652a7dd47c545db8338a580592f7f35 (patch)
treed03fbd45fb49cc7ede4b4886db7001affc4ee019
parent37fbf69d8047d5269deb828df400614eed883f4c (diff)
QQmlAdaptorModel: Don't const_cast to call release()
release() is const. Change-Id: I00171af75151741e725cd2ceaa80afcaac4f62a3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r--src/qmlmodels/qqmladaptormodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlmodels/qqmladaptormodel.cpp b/src/qmlmodels/qqmladaptormodel.cpp
index 364d63dc29..64d9723a6d 100644
--- a/src/qmlmodels/qqmladaptormodel.cpp
+++ b/src/qmlmodels/qqmladaptormodel.cpp
@@ -458,7 +458,7 @@ public:
void cleanup(QQmlAdaptorModel &) const override
{
- const_cast<VDMAbstractItemModelDataType *>(this)->release();
+ release();
}
QVariant value(const QQmlAdaptorModel &model, int index, const QString &role) const override