Fixed CID 1360385, we know conversion can be made so use static_cast instead of dynamic_cast
This commit is contained in:
parent
0b751dcc1b
commit
4311d4192a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue