ProjectExplorer: Avoid casting to const value

Detected by GCC8.

Change-Id: I01b7dda2c8304986dae88f30c753221661c32207
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2018-04-04 22:53:53 +03:00
committed by Orgad Shaneh
parent 27190cd50a
commit b67ad62cac

View File

@@ -109,7 +109,7 @@ bool DependenciesModel::setData(const QModelIndex &index, const QVariant &value,
{
if (role == Qt::CheckStateRole) {
Project *p = m_projects.at(index.row());
auto c = static_cast<const Qt::CheckState>(value.toInt());
const auto c = static_cast<Qt::CheckState>(value.toInt());
if (c == Qt::Checked) {
if (SessionManager::addDependency(m_project, p)) {