diff --git a/gui/librarydialog.cpp b/gui/librarydialog.cpp index 2faa56466..0db721ee0 100644 --- a/gui/librarydialog.cpp +++ b/gui/librarydialog.cpp @@ -70,7 +70,7 @@ CppcheckLibraryData::Function *LibraryDialog::currentFunction() QList selitems = ui->functions->selectedItems(); if (selitems.count() != 1) return nullptr; - return dynamic_cast(selitems.first())->function; + return static_cast(selitems.first())->function; } void LibraryDialog::openCfg()