bugfix/ai-static-analysis #82

Open
localhorst wants to merge 15 commits from bugfix/ai-static-analysis into master
5 changed files with 93 additions and 66 deletions
Showing only changes of commit 43ccdbd4d8 - Show all commits

View File

@ -143,8 +143,6 @@ void reHDD::ThreadUserInput()
while (true)
{
Drive *tmpSelectedDrive = getSelectedDrive();
if (tmpSelectedDrive != nullptr)
{
// cout << TUI::readUserInput() << endl;
switch (TUI::readUserInput())
@ -182,10 +180,13 @@ void reHDD::ThreadUserInput()
break;
case TUI::UserInput::Shred:
// cout << "Shred" << endl;
if (tmpSelectedDrive != nullptr)
{
if (tmpSelectedDrive->state == Drive::NONE)
{
tmpSelectedDrive->state = Drive::SHRED_SELECTED;
}
}
ui->updateTUI(&listDrives, u8SelectedEntry);
break;
case TUI::UserInput::ShredAll:
@ -214,7 +215,6 @@ void reHDD::ThreadUserInput()
break;
}
}
}
}
void reHDD::ThreadShred(Drive *const pDrive)