LUKS static cast here should be sufficient.

This commit is contained in:
Chantara Tith 2016-08-06 21:13:28 +07:00
parent f10964fe7e
commit f6a72c05f2
1 changed files with 1 additions and 1 deletions

View File

@ -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::luks*>(fs);
FS::luks* luksFs = static_cast<FS::luks*>(fs);
QString mapperNode = FS::luks::mapperName(lvpath);
bool isCryptOpen = !mapperNode.isEmpty();
luksFs->setCryptOpen(isCryptOpen);