Do not forget breaks in switch (thanks to Coverity).

This commit is contained in:
Teo Mrnjavac 2015-07-23 17:36:55 +02:00
parent a683078b28
commit c031d239e5
1 changed files with 2 additions and 0 deletions

View File

@ -45,8 +45,10 @@ DeleteOperation::DeleteOperation(Device& d, Partition* p, ShredAction shred) :
switch (shredAction()) {
case NoShred:
m_DeleteFileSystemJob = static_cast<Job*>(new DeleteFileSystemJob(targetDevice(), deletedPartition()));
break;
case ZeroShred:
m_DeleteFileSystemJob = static_cast<Job*>(new ShredFileSystemJob(targetDevice(), deletedPartition(), false));
break;
case RandomShred:
m_DeleteFileSystemJob = static_cast<Job*>(new ShredFileSystemJob(targetDevice(), deletedPartition(), true));
}