LUKS static cast here should be sufficient.

This commit is contained in:
Chantara Tith 2016-08-06 21:13:28 +07:00 committed by Andrius Štikonas
parent 61d5e874d8
commit 5447768a76
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);