Commit 70d8784b authored by Sean McBride's avatar Sean McBride

Fixed analyzer warning by removing null check

The analyzer saw a check for null so assumed it could happen,
but it must be impossible, because there’s an unconditional
dereference just below.

Change-Id: Ibdb0bd6aee89ff1eadd8442d35b7d33f54486eb4
parent 93b12c9a
......@@ -1191,8 +1191,8 @@ void vtkAlgorithm::RemoveInputConnection(int port, vtkAlgorithmOutput* input)
vtkDebugMacro("Removing connection to input port index " << consumerPort
<< " from output port index " << producerPort
<< " on algorithm "
<< (producer? producer->GetAlgorithm()->GetClassName() : "")
<< "(" << (producer? producer->GetAlgorithm() : 0) << ").");
<< producer->GetAlgorithm()->GetClassName()
<< "(" << producer->GetAlgorithm() << ").");
// Get the information object from the producer of the old input.
vtkInformation* oldInfo = producer->GetOutputInformation(producerPort);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment