Static cast should be sufficient here

In the line above we already check if partition type is luks
This commit is contained in:
Andrius Štikonas 2018-07-08 11:02:34 +01:00
parent 0dd5ac25fd
commit 9e3386a53b
1 changed files with 1 additions and 1 deletions

View File

@ -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;