diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-09-26 04:04:09 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-09-26 04:04:09 +0200 |
commit | cca670013463f0062cec950d9b9bb76f9150ed93 (patch) | |
tree | f3a80479a0184f5f25af6c0ca42714cc7ba4e9c5 /application/VersionProxyModel.cpp | |
parent | 0af04dc060cfe94f25d1d3691c8bb87cbab1ecc5 (diff) | |
download | MultiMC-cca670013463f0062cec950d9b9bb76f9150ed93.tar MultiMC-cca670013463f0062cec950d9b9bb76f9150ed93.tar.gz MultiMC-cca670013463f0062cec950d9b9bb76f9150ed93.tar.lz MultiMC-cca670013463f0062cec950d9b9bb76f9150ed93.tar.xz MultiMC-cca670013463f0062cec950d9b9bb76f9150ed93.zip |
NOISSUE fix all clang warnings
Diffstat (limited to 'application/VersionProxyModel.cpp')
-rw-r--r-- | application/VersionProxyModel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/application/VersionProxyModel.cpp b/application/VersionProxyModel.cpp index 743ffad0..4db5cbd0 100644 --- a/application/VersionProxyModel.cpp +++ b/application/VersionProxyModel.cpp @@ -309,8 +309,9 @@ void VersionProxyModel::sourceDataChanged(const QModelIndex &source_top_left, emit dataChanged(topLeft, bottomRight); } -void VersionProxyModel::setSourceModel(BaseVersionList *replacing) +void VersionProxyModel::setSourceModel(QAbstractItemModel *replacingRaw) { + auto replacing = dynamic_cast<BaseVersionList *>(replacingRaw); beginResetModel(); if(!replacing) |