Commit 425da911 authored by Sean McBride's avatar Sean McBride

Replaced #include <assert.h> with #include <cassert>

In other words, changed from the C to the C++ header name.
Did this only in .cxx files, and not in ThirdParty.

Change-Id: I81e2b2c7f2db00e98b37d507232fbc84022e8d8f
parent 879e9ce9
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#define _FILE_OFFSET_BITS 64 #define _FILE_OFFSET_BITS 64
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <assert.h> #include <cassert>
#include <stdio.h> #include <stdio.h>
int main( int, char **argv ) int main( int, char **argv )
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
#include "vtkPiecewiseFunction.h" #include "vtkPiecewiseFunction.h"
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkCardinalSpline); vtkStandardNewMacro(vtkCardinalSpline);
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
# include <set> # include <set>
#endif #endif
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkGarbageCollector); vtkStandardNewMacro(vtkGarbageCollector);
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "vtkStringArray.h" #include "vtkStringArray.h"
#include "vtkVariantArray.h" #include "vtkVariantArray.h"
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkLookupTable); vtkStandardNewMacro(vtkLookupTable);
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "vtkMath.h" #include "vtkMath.h"
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
#include "vtkDataArray.h" #include "vtkDataArray.h"
#include <assert.h> #include <cassert>
#include <cmath> #include <cmath>
#include "vtkBoxMuellerRandomSequence.h" #include "vtkBoxMuellerRandomSequence.h"
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#include "vtkGenericGeometryFilter.h" #include "vtkGenericGeometryFilter.h"
#include "vtkGenericCellTessellator.h" #include "vtkGenericCellTessellator.h"
#include "vtkGenericSubdivisionErrorMetric.h" #include "vtkGenericSubdivisionErrorMetric.h"
#include <assert.h> #include <cassert>
#include "vtkLookupTable.h" #include "vtkLookupTable.h"
#include "vtkPolyDataMapper.h" #include "vtkPolyDataMapper.h"
#include "vtkPolyData.h" #include "vtkPolyData.h"
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "vtkUniformGrid.h" #include "vtkUniformGrid.h"
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkAMRDataInternals); vtkStandardNewMacro(vtkAMRDataInternals);
vtkAMRDataInternals::Block::Block(unsigned int i, vtkUniformGrid* g) vtkAMRDataInternals::Block::Block(unsigned int i, vtkUniformGrid* g)
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "vtkBoundingBox.h" #include "vtkBoundingBox.h"
#include "vtkAMRBox.h" #include "vtkAMRBox.h"
#include "vtkDoubleArray.h" #include "vtkDoubleArray.h"
#include <assert.h> #include <cassert>
#include <set> #include <set>
vtkStandardNewMacro(vtkAMRInformation); vtkStandardNewMacro(vtkAMRInformation);
......
...@@ -17,7 +17,7 @@ PURPOSE. See the above copyright notice for more information. ...@@ -17,7 +17,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkVector.h" #include "vtkVector.h"
#include "vtkVectorOperators.h" #include "vtkVectorOperators.h"
#include <assert.h> #include <cassert>
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
vtkAtom::vtkAtom(vtkMolecule *parent, vtkIdType id) vtkAtom::vtkAtom(vtkMolecule *parent, vtkIdType id)
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "vtkGenericAttributeCollection.h" #include "vtkGenericAttributeCollection.h"
#include "vtkGenericAdaptorCell.h" #include "vtkGenericAdaptorCell.h"
#include "vtkGenericDataSet.h" #include "vtkGenericDataSet.h"
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkAttributesErrorMetric); vtkStandardNewMacro(vtkAttributesErrorMetric);
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "vtkQuadraticQuad.h" #include "vtkQuadraticQuad.h"
#include "vtkBiQuadraticQuad.h" #include "vtkBiQuadraticQuad.h"
#include "vtkPoints.h" #include "vtkPoints.h"
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkBiQuadraticQuadraticHexahedron); vtkStandardNewMacro(vtkBiQuadraticQuadraticHexahedron);
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "vtkQuadraticTriangle.h" #include "vtkQuadraticTriangle.h"
#include "vtkPoints.h" #include "vtkPoints.h"
#include <assert.h> #include <cassert>
vtkStandardNewMacro (vtkBiQuadraticQuadraticWedge); vtkStandardNewMacro (vtkBiQuadraticQuadraticWedge);
......
...@@ -18,7 +18,7 @@ PURPOSE. See the above copyright notice for more information. ...@@ -18,7 +18,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkVector.h" #include "vtkVector.h"
#include "vtkVectorOperators.h" #include "vtkVectorOperators.h"
#include <assert.h> #include <cassert>
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
vtkBond::vtkBond(vtkMolecule *parent, vtkIdType id, vtkBond::vtkBond(vtkMolecule *parent, vtkIdType id,
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "vtkBoundingBox.h" #include "vtkBoundingBox.h"
#include <vtkMath.h> #include <vtkMath.h>
#include <vtkPlane.h> #include <vtkPlane.h>
#include <assert.h> #include <cassert>
#include <math.h> #include <math.h>
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "vtkMath.h" #include "vtkMath.h"
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
#include "vtkBoundingBox.h" #include "vtkBoundingBox.h"
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkBox); vtkStandardNewMacro(vtkBox);
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <limits.h> // CHAR_BIT #include <limits.h> // CHAR_BIT
#include <assert.h> // assert() #include <cassert> // assert()
vtkInformationKeyMacro(vtkDistributedGraphHelper, DISTRIBUTEDVERTEXIDS, Integer); vtkInformationKeyMacro(vtkDistributedGraphHelper, DISTRIBUTEDVERTEXIDS, Integer);
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
=========================================================================*/ =========================================================================*/
#include "vtkGenericAdaptorCell.h" #include "vtkGenericAdaptorCell.h"
#include <assert.h> #include <cassert>
#include "vtkPoints.h" #include "vtkPoints.h"
#include "vtkIncrementalPointLocator.h" #include "vtkIncrementalPointLocator.h"
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
// .SECTION Description // .SECTION Description
#include "vtkGenericAttribute.h" #include "vtkGenericAttribute.h"
#include <assert.h> #include <cassert>
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <vector> #include <vector>
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkGenericAttributeCollection); vtkStandardNewMacro(vtkGenericAttributeCollection);
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "vtkGenericCellIterator.h" #include "vtkGenericCellIterator.h"
#include <assert.h> #include <cassert>
#include "vtkMath.h" #include "vtkMath.h"
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "vtkInformationVector.h" #include "vtkInformationVector.h"
#include "vtkMath.h" #include "vtkMath.h"
#include <assert.h> #include <cassert>
vtkCxxSetObjectMacro(vtkGenericDataSet,Tessellator,vtkGenericCellTessellator); vtkCxxSetObjectMacro(vtkGenericDataSet,Tessellator,vtkGenericCellTessellator);
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
#include <vector> #include <vector>
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkGenericEdgeTable); vtkStandardNewMacro(vtkGenericEdgeTable);
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "vtkGenericAdaptorCell.h" #include "vtkGenericAdaptorCell.h"
#include "vtkGenericDataSet.h" #include "vtkGenericDataSet.h"
#include "vtkMath.h" #include "vtkMath.h"
#include <assert.h> #include <cassert>
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "vtkGenericAdaptorCell.h" #include "vtkGenericAdaptorCell.h"
#include "vtkGenericDataSet.h" #include "vtkGenericDataSet.h"
#include "vtkMath.h" #include "vtkMath.h"
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkGeometricErrorMetric); vtkStandardNewMacro(vtkGeometricErrorMetric);
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#include "vtkVariantArray.h" #include "vtkVariantArray.h"
#include "vtkStringArray.h" #include "vtkStringArray.h"
#include <assert.h> #include <cassert>
#include <vtksys/stl/algorithm> #include <vtksys/stl/algorithm>
#include <vtksys/stl/set> #include <vtksys/stl/set>
#include <vtksys/stl/vector> #include <vtksys/stl/vector>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
//#include <set> //#include <set>
#include <vector> #include <vector>
#include <assert.h> #include <cassert>
vtkInformationKeyMacro(vtkHyperOctree, LEVELS, Integer); vtkInformationKeyMacro(vtkHyperOctree, LEVELS, Integer);
vtkInformationKeyMacro(vtkHyperOctree, DIMENSION, Integer); vtkInformationKeyMacro(vtkHyperOctree, DIMENSION, Integer);
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
=========================================================================*/ =========================================================================*/
#include "vtkHyperOctreePointsGrabber.h" #include "vtkHyperOctreePointsGrabber.h"
#include <assert.h> #include <cassert>
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
...@@ -21,7 +21,7 @@ PURPOSE. See the above copyright notice for more information. ...@@ -21,7 +21,7 @@ PURPOSE. See the above copyright notice for more information.
#include <vector> #include <vector>
#include <map> #include <map>
#include <assert.h> #include <cassert>
// Description: // Description:
// The template value N describes the number of children to binary and // The template value N describes the number of children to binary and
......
...@@ -38,7 +38,7 @@ PURPOSE. See the above copyright notice for more information. ...@@ -38,7 +38,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkVoxel.h" #include "vtkVoxel.h"
#include "vtkTimerLog.h" #include "vtkTimerLog.h"
#include <assert.h> #include <cassert>
vtkInformationKeyMacro( vtkHyperTreeGrid, LEVELS, Integer ); vtkInformationKeyMacro( vtkHyperTreeGrid, LEVELS, Integer );
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "vtkMath.h" #include "vtkMath.h"
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkImplicitHalo); vtkStandardNewMacro(vtkImplicitHalo);
......
...@@ -26,7 +26,7 @@ PURPOSE. See the above copyright notice for more information. ...@@ -26,7 +26,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkVector.h" #include "vtkVector.h"
#include "vtkVectorOperators.h" #include "vtkVectorOperators.h"
#include <assert.h> #include <cassert>
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
vtkStandardNewMacro(vtkMolecule); vtkStandardNewMacro(vtkMolecule);
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <vector> #include <vector>
#include <stack> #include <stack>
#include <map> #include <map>
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkOrderedTriangulator); vtkStandardNewMacro(vtkOrderedTriangulator);
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <queue> #include <queue>
#include <stack> #include <stack>
#include <assert.h> #include <cassert>
// format of the arrays LeftPoint, MidPoint, RightPoint is global, parametric, // format of the arrays LeftPoint, MidPoint, RightPoint is global, parametric,
// attributes: xyz rst [abc de...] // attributes: xyz rst [abc de...]
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "vtkGenericAdaptorCell.h" #include "vtkGenericAdaptorCell.h"
#include "vtkGenericDataSet.h" #include "vtkGenericDataSet.h"
#include "vtkMath.h" #include "vtkMath.h"
#include <assert.h> #include <cassert>
vtkStandardNewMacro(vtkSmoothErrorMetric); vtkStandardNewMacro(vtkSmoothErrorMetric);
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "vtkIdList.h" #include "vtkIdList.h"
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
#include "vtkStructuredExtent.h" #include "vtkStructuredExtent.h"
#include <assert.h> #include <cassert>
// Return the topological dimension of the data (e.g., 0, 1, 2, or 3D). // Return the topological dimension of the data (e.g., 0, 1, 2, or 3D).
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "vtkDataObject.h" #include "vtkDataObject.h"
#include "vtkUniformGrid.h" #include "vtkUniformGrid.h"
#include "vtkInformation.h" #include "vtkInformation.h"
#include <assert.h> #include <cassert>
//---------------------------------------------------------------- //----------------------------------------------------------------
class AMRIndexIterator: public vtkObject class AMRIndexIterator: public vtkObject
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "vtkPointData.h" #include "vtkPointData.h"
#include "vtkSmartPointer.h" #include "vtkSmartPointer.h"
#include "vtkNew.h" #include "vtkNew.h"
#include <assert.h> #include <cassert>
#define CHECK(b, errors) if(!(b)){ errors++; cerr<<"Error on Line "<<__LINE__<<":"<<endl;} #define CHECK(b, errors) if(!(b)){ errors++; cerr<<"Error on Line "<<__LINE__<<":"<<endl;}
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "vtkStringArray.h" #include "vtkStringArray.h"
#include "vtkUnsignedShortArray.h" #include "vtkUnsignedShortArray.h"
#include <assert.h> #include <cassert>
#include <cctype> #include <cctype>
#include <cstring> #include <cstring>
......
...@@ -11,7 +11,7 @@ All rights reserved. ...@@ -11,7 +11,7 @@ All rights reserved.
#include "Node.h" #include "Node.h"
#include "Cell.h" #include "Cell.h"
#include <assert.h> #include <cassert>
#include <vtkUnstructuredGrid.h> #include <vtkUnstructuredGrid.h>
#include <vtkPoints.h> #include <vtkPoints.h>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "vtkDataSetTriangleFilter.h" #include "vtkDataSetTriangleFilter.h"
#include "vtkPointDataToCellData.h" #include "vtkPointDataToCellData.h"
#include "vtkImageDataToPointSet.h" #include "vtkImageDataToPointSet.h"
#include <assert.h> #include <cassert>
bool TestStructured(int type) bool TestStructured(int type)
{ {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include "vtkObjectFactory.h" #include "vtkObjectFactory.h"
#include "vtkCompositeDataIterator.h" #include "vtkCompositeDataIterator.h"
#include "vtkSmartPointer.h" #include "vtkSmartPointer.h"
#include <assert.h> #include <cassert>