From 9e3386a53b0e398a61b28f1800c8b4b9f1c7b01a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 8 Jul 2018 11:02:34 +0100 Subject: [PATCH] Static cast should be sufficient here In the line above we already check if partition type is luks --- src/ops/deleteoperation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ops/deleteoperation.cpp b/src/ops/deleteoperation.cpp index 3f2c52f..0a83c96 100644 --- a/src/ops/deleteoperation.cpp +++ b/src/ops/deleteoperation.cpp @@ -149,7 +149,7 @@ bool DeleteOperation::canDelete(const Partition* p, const QList pen if (p->roles().has(PartitionRole::Luks)) { - const FS::luks* luksFs = dynamic_cast(&p->fileSystem()); + const FS::luks* luksFs = static_cast(&p->fileSystem()); if (!luksFs) return false;