Examples of errors detected by the V1022 diagnostic


V1022. An exception was thrown by pointer. Consider throwing it by value instead.


LibrePCB

V1022 CWE-755 An exception was thrown by pointer. Consider throwing it by value instead. cmdremoveselectedschematicitems.cpp 143


bool CmdRemoveSelectedSchematicItems::performExecute() {
  ....
  throw new LogicError(__FILE__, __LINE__);
  ....
}


Bugs Found

Checked Projects
334
Collected Errors
12 668