From 5447768a76ab3cf60d67014b02fe75b7bc2653b7 Mon Sep 17 00:00:00 2001 From: Chantara Tith Date: Sat, 6 Aug 2016 21:13:28 +0700 Subject: [PATCH] LUKS static cast here should be sufficient. --- src/core/lvmdevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lvmdevice.cpp b/src/core/lvmdevice.cpp index d0438fc..4762411 100644 --- a/src/core/lvmdevice.cpp +++ b/src/core/lvmdevice.cpp @@ -113,7 +113,7 @@ Partition* LvmDevice::scanPartition(const QString& lvpath, PartitionTable* pTabl if (type == FileSystem::Luks) { r |= PartitionRole::Luks; - FS::luks* luksFs = dynamic_cast(fs); + FS::luks* luksFs = static_cast(fs); QString mapperNode = FS::luks::mapperName(lvpath); bool isCryptOpen = !mapperNode.isEmpty(); luksFs->setCryptOpen(isCryptOpen);