PD: Fix several coverity issues:
* CID 350558: Uninitialized pointer field * CID 350554: Uninitialized pointer field * CID 350589: Uninitialized pointer field * CID 350608: Uninitialized pointer field * CID 350544: Uncaught exception * CID 350568: Uncaught exception * CID 350603: Uncaught exception * CID 350562: Unchecked dynamic_cast * CID 350591: Unchecked dynamic_cast * CID 350583: Unchecked dynamic_cast * CID 350598: Unchecked dynamic_cast
This commit is contained in:
@@ -149,9 +149,12 @@ void ViewProviderLoft::highlightReferences(ViewProviderLoft::Reference mode, boo
|
||||
|
||||
void ViewProviderLoft::highlightReferences(Part::Feature* base, const std::vector<std::string>& elements, bool on)
|
||||
{
|
||||
if (!base)
|
||||
return;
|
||||
|
||||
PartGui::ViewProviderPart* svp = dynamic_cast<PartGui::ViewProviderPart*>(
|
||||
Gui::Application::Instance->getViewProvider(base));
|
||||
if (svp == nullptr)
|
||||
if (!svp)
|
||||
return;
|
||||
|
||||
std::vector<App::Color>& edgeColors = originalLineColors[base->getID()];
|
||||
|
||||
Reference in New Issue
Block a user