Fixed CID 1360385, we know conversion can be made so use static_cast instead of dynamic_cast

This commit is contained in:
Daniel Marjamäki 2017-09-02 10:34:02 +02:00
parent 0b751dcc1b
commit 4311d4192a
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ CppcheckLibraryData::Function *LibraryDialog::currentFunction()
QList<QListWidgetItem *> selitems = ui->functions->selectedItems();
if (selitems.count() != 1)
return nullptr;
return dynamic_cast<FunctionListItem *>(selitems.first())->function;
return static_cast<FunctionListItem *>(selitems.first())->function;
}
void LibraryDialog::openCfg()