Commit 68789da3 authored by Mathieu Malaterre's avatar Mathieu Malaterre

COMP: Fix warnings on VS6

parent e5422d9c
......@@ -34,7 +34,7 @@
#include <vtkstd/string>
#include <vtkstd/vector>
vtkCxxRevisionMacro(vtkFacetWriter, "1.3");
vtkCxxRevisionMacro(vtkFacetWriter, "1.4");
vtkStandardNewMacro(vtkFacetWriter);
//----------------------------------------------------------------------------
......@@ -160,8 +160,8 @@ int vtkFacetWriter::WriteDataToStream(ostream* ost, vtkPolyData* data)
}
ca = data->GetVerts();
numCells = ca->GetNumberOfCells();
vtkIdType numPts;
vtkIdType *pts;
vtkIdType numPts = 0;
vtkIdType *pts = NULL;
ca->InitTraversal();
while ( ca->GetNextCell( numPts, pts ) )
{
......@@ -194,8 +194,8 @@ int vtkFacetWriter::WriteDataToStream(ostream* ost, vtkPolyData* data)
}
ca = data->GetLines();
numCells = ca->GetNumberOfCells();
vtkIdType numPts;
vtkIdType *pts;
vtkIdType numPts = 0;
vtkIdType *pts = NULL;
ca->InitTraversal();
while ( ca->GetNextCell( numPts, pts ) )
{
......@@ -228,8 +228,8 @@ int vtkFacetWriter::WriteDataToStream(ostream* ost, vtkPolyData* data)
}
ca = data->GetPolys();
numCells = ca->GetNumberOfCells();
vtkIdType numPts;
vtkIdType *pts;
vtkIdType numPts = 0;
vtkIdType *pts = NULL;
ca->InitTraversal();
ca->GetNextCell(numPts, pts);
totalCells ++;
......@@ -269,8 +269,8 @@ int vtkFacetWriter::WriteDataToStream(ostream* ost, vtkPolyData* data)
}
ca = data->GetStrips();
numCells = ca->GetNumberOfCells();
vtkIdType numPts;
vtkIdType *pts;
vtkIdType numPts = 0;
vtkIdType *pts = NULL;
ca->InitTraversal();
while ( ca->GetNextCell( numPts, pts ) )
{
......
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