Static cast should be sufficient here
In the line above we already check if partition type is luks
This commit is contained in:
parent
0dd5ac25fd
commit
9e3386a53b
|
@ -149,7 +149,7 @@ bool DeleteOperation::canDelete(const Partition* p, const QList<Operation *> pen
|
|||
|
||||
if (p->roles().has(PartitionRole::Luks))
|
||||
{
|
||||
const FS::luks* luksFs = dynamic_cast<const FS::luks*>(&p->fileSystem());
|
||||
const FS::luks* luksFs = static_cast<const FS::luks*>(&p->fileSystem());
|
||||
if (!luksFs)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue