File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ Checks: >
1919 -openmp-*,
2020 -zircon-*,
2121 cert-err34-c,
22- google-explicit-constructor ,
22+ cppcoreguidelines-pro-type-static-cast-downcast ,
2323 cppcoreguidelines-rvalue-reference-param-not-moved,
24+ google-explicit-constructor,
2425 -bugprone-assignment-in-if-condition,
2526 -bugprone-branch-clone,
2627 -bugprone-easily-swappable-parameters,
Original file line number Diff line number Diff line change @@ -135,7 +135,6 @@ To be evaluated (need to remove exclusion).
135135` cppcoreguidelines-avoid-const-or-ref-data-members ` <br />
136136` cppcoreguidelines-macro-usage ` <br />
137137` cppcoreguidelines-pro-type-member-init ` <br />
138- ` cppcoreguidelines-pro-type-static-cast-downcast ` <br />
139138` cppcoreguidelines-prefer-member-initializer ` <br />
140139` cppcoreguidelines-misleading-capture-default-by-value ` <br />
141140` bugprone-argument-comment.CommentBoolLiterals ` <br />
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ CppcheckLibraryData::Function *LibraryDialog::currentFunction()
8787 QList<QListWidgetItem *> selitems = mUi ->functions ->selectedItems ();
8888 if (selitems.count () != 1 )
8989 return nullptr ;
90- return static_cast <FunctionListItem *>(selitems.first ())->function ;
90+ return dynamic_cast <FunctionListItem *>(selitems.first ())->function ;
9191}
9292
9393void LibraryDialog::openCfg ()
You can’t perform that action at this time.
0 commit comments