forked from qt-creator/qt-creator
ProjectExplorer: Avoid casting to const value
Detected by GCC8. Change-Id: I01b7dda2c8304986dae88f30c753221661c32207 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
27190cd50a
commit
b67ad62cac
@@ -109,7 +109,7 @@ bool DependenciesModel::setData(const QModelIndex &index, const QVariant &value,
|
|||||||
{
|
{
|
||||||
if (role == Qt::CheckStateRole) {
|
if (role == Qt::CheckStateRole) {
|
||||||
Project *p = m_projects.at(index.row());
|
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 (c == Qt::Checked) {
|
||||||
if (SessionManager::addDependency(m_project, p)) {
|
if (SessionManager::addDependency(m_project, p)) {
|
||||||
|
Reference in New Issue
Block a user