Remove const_cast
This commit is contained in:
parent
d675823b57
commit
3b833e474b
|
@ -322,12 +322,10 @@ void Controller::handleEntriesRemoved(const QModelIndex &parentIndex, int first,
|
|||
}
|
||||
break;
|
||||
case EntryType::Node:
|
||||
// FIXME: remove const_cast in passwordfile v4
|
||||
if (currentAccount->isIndirectChildOf(static_cast<NodeEntry *>(const_cast<Entry *>(childEntry)))) {
|
||||
if (currentAccount->isIndirectChildOf(static_cast<const NodeEntry *>(childEntry))) {
|
||||
setCurrentAccount(nullptr);
|
||||
}
|
||||
break;
|
||||
default:;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue