Skip to content
Snippets Groups Projects
Commit 5c91a749 authored by Sean McBride's avatar Sean McBride
Browse files

Suppress clang analyzer warning

Added assert to make analyzer understand
that the parameter will never be null.
(Presumably it never is, since it'd be
crashing.)

Change-Id: I3081ddb81199bfbf47cf2ccbe2b63a467cf239b7
parent 4cc7d0f2
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
#include "vtkGarbageCollector.h"
#include "vtkObjectFactory.h"
#include <cassert>
#include <stdlib.h>
#include <math.h>
......@@ -53,6 +54,7 @@ void vtkCollection::DeleteElement(vtkCollectionElement *e)
void vtkCollection::
RemoveElement(vtkCollectionElement *elem, vtkCollectionElement *prev)
{
assert(elem);
if (prev)
{
prev->Next = elem->Next;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment