Commit 0d491037 authored by Burlen Loring's avatar Burlen Loring Committed by David E. DeMarle

surface LIC - stl and NULL

BUG 0014493. cast to pointer type when using NULL
to intialize stl containers of pointers.

Change-Id: I7ee397059a7be2639edccc9258842e19665085cd
parent 36ad2819
......@@ -38,6 +38,7 @@
#include <vector>
#include <utility>
#include <algorithm>
#include <cstddef>
using std::list;
using std::deque;
......@@ -1272,9 +1273,9 @@ int vtkPSurfaceLICComposite::Gather(
vector<MPI_Request> mpiSendReqs;
deque<MPI_Datatype> mpiTypes;
#ifdef PBO_RECV_BUFFERS
deque<vtkPixelBufferObject*> recvPBOs(nTransactions, NULL);
deque<vtkPixelBufferObject*> recvPBOs(nTransactions, static_cast<vtkPixelBufferObject*>(NULL));
#else
deque<void*> recvBufs(nTransactions, NULL);
deque<void*> recvBufs(nTransactions, static_cast<void*>(NULL));
#endif
for (int j=0; j<nTransactions; ++j)
{
......
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