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 @@
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
#include <cassert>
#include <stdio.h>
int main( int, char **argv )
......
......@@ -16,7 +16,7 @@
#include "vtkObjectFactory.h"
#include "vtkPiecewiseFunction.h"
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkCardinalSpline);
......
......@@ -34,7 +34,7 @@
# include <set>
#endif
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkGarbageCollector);
......
......@@ -22,7 +22,7 @@
#include "vtkStringArray.h"
#include "vtkVariantArray.h"
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkLookupTable);
......
......@@ -25,7 +25,7 @@
#include "vtkMath.h"
#include "vtkObjectFactory.h"
#include "vtkDataArray.h"
#include <assert.h>
#include <cassert>
#include <cmath>
#include "vtkBoxMuellerRandomSequence.h"
......
......@@ -38,7 +38,7 @@
#include "vtkGenericGeometryFilter.h"
#include "vtkGenericCellTessellator.h"
#include "vtkGenericSubdivisionErrorMetric.h"
#include <assert.h>
#include <cassert>
#include "vtkLookupTable.h"
#include "vtkPolyDataMapper.h"
#include "vtkPolyData.h"
......
......@@ -16,7 +16,7 @@
#include "vtkUniformGrid.h"
#include "vtkObjectFactory.h"
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkAMRDataInternals);
vtkAMRDataInternals::Block::Block(unsigned int i, vtkUniformGrid* g)
......
......@@ -21,7 +21,7 @@
#include "vtkBoundingBox.h"
#include "vtkAMRBox.h"
#include "vtkDoubleArray.h"
#include <assert.h>
#include <cassert>
#include <set>
vtkStandardNewMacro(vtkAMRInformation);
......
......@@ -17,7 +17,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkVector.h"
#include "vtkVectorOperators.h"
#include <assert.h>
#include <cassert>
//----------------------------------------------------------------------------
vtkAtom::vtkAtom(vtkMolecule *parent, vtkIdType id)
......
......@@ -19,7 +19,7 @@
#include "vtkGenericAttributeCollection.h"
#include "vtkGenericAdaptorCell.h"
#include "vtkGenericDataSet.h"
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkAttributesErrorMetric);
......
......@@ -28,7 +28,7 @@
#include "vtkQuadraticQuad.h"
#include "vtkBiQuadraticQuad.h"
#include "vtkPoints.h"
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkBiQuadraticQuadraticHexahedron);
......
......@@ -27,7 +27,7 @@
#include "vtkQuadraticTriangle.h"
#include "vtkPoints.h"
#include <assert.h>
#include <cassert>
vtkStandardNewMacro (vtkBiQuadraticQuadraticWedge);
......
......@@ -18,7 +18,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkVector.h"
#include "vtkVectorOperators.h"
#include <assert.h>
#include <cassert>
//----------------------------------------------------------------------------
vtkBond::vtkBond(vtkMolecule *parent, vtkIdType id,
......
......@@ -15,7 +15,7 @@
#include "vtkBoundingBox.h"
#include <vtkMath.h>
#include <vtkPlane.h>
#include <assert.h>
#include <cassert>
#include <math.h>
// ---------------------------------------------------------------------------
......
......@@ -16,7 +16,7 @@
#include "vtkMath.h"
#include "vtkObjectFactory.h"
#include "vtkBoundingBox.h"
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkBox);
......
......@@ -30,7 +30,7 @@
#include <limits.h> // CHAR_BIT
#include <assert.h> // assert()
#include <cassert> // assert()
vtkInformationKeyMacro(vtkDistributedGraphHelper, DISTRIBUTEDVERTEXIDS, Integer);
......
......@@ -14,7 +14,7 @@
=========================================================================*/
#include "vtkGenericAdaptorCell.h"
#include <assert.h>
#include <cassert>
#include "vtkPoints.h"
#include "vtkIncrementalPointLocator.h"
......
......@@ -16,7 +16,7 @@
// .SECTION Description
#include "vtkGenericAttribute.h"
#include <assert.h>
#include <cassert>
//---------------------------------------------------------------------------
......
......@@ -20,7 +20,7 @@
#include <vector>
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkGenericAttributeCollection);
......
......@@ -29,7 +29,7 @@
#include "vtkGenericCellIterator.h"
#include <assert.h>
#include <cassert>
#include "vtkMath.h"
......
......@@ -23,7 +23,7 @@
#include "vtkInformationVector.h"
#include "vtkMath.h"
#include <assert.h>
#include <cassert>
vtkCxxSetObjectMacro(vtkGenericDataSet,Tessellator,vtkGenericCellTessellator);
......
......@@ -16,7 +16,7 @@
#include "vtkObjectFactory.h"
#include <vector>
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkGenericEdgeTable);
......
......@@ -20,7 +20,7 @@
#include "vtkGenericAdaptorCell.h"
#include "vtkGenericDataSet.h"
#include "vtkMath.h"
#include <assert.h>
#include <cassert>
//-----------------------------------------------------------------------------
......
......@@ -20,7 +20,7 @@
#include "vtkGenericAdaptorCell.h"
#include "vtkGenericDataSet.h"
#include "vtkMath.h"
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkGeometricErrorMetric);
......
......@@ -44,7 +44,7 @@
#include "vtkVariantArray.h"
#include "vtkStringArray.h"
#include <assert.h>
#include <cassert>
#include <vtksys/stl/algorithm>
#include <vtksys/stl/set>
#include <vtksys/stl/vector>
......
......@@ -40,7 +40,7 @@
//#include <set>
#include <vector>
#include <assert.h>
#include <cassert>
vtkInformationKeyMacro(vtkHyperOctree, LEVELS, Integer);
vtkInformationKeyMacro(vtkHyperOctree, DIMENSION, Integer);
......
......@@ -14,7 +14,7 @@
=========================================================================*/
#include "vtkHyperOctreePointsGrabber.h"
#include <assert.h>
#include <cassert>
//-----------------------------------------------------------------------------
......
......@@ -21,7 +21,7 @@ PURPOSE. See the above copyright notice for more information.
#include <vector>
#include <map>
#include <assert.h>
#include <cassert>
// Description:
// 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.
#include "vtkVoxel.h"
#include "vtkTimerLog.h"
#include <assert.h>
#include <cassert>
vtkInformationKeyMacro( vtkHyperTreeGrid, LEVELS, Integer );
......
......@@ -16,7 +16,7 @@
#include "vtkMath.h"
#include "vtkObjectFactory.h"
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkImplicitHalo);
......
......@@ -26,7 +26,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkVector.h"
#include "vtkVectorOperators.h"
#include <assert.h>
#include <cassert>
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkMolecule);
......
......@@ -31,7 +31,7 @@
#include <vector>
#include <stack>
#include <map>
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkOrderedTriangulator);
......
......@@ -33,7 +33,7 @@
#include <queue>
#include <stack>
#include <assert.h>
#include <cassert>
// format of the arrays LeftPoint, MidPoint, RightPoint is global, parametric,
// attributes: xyz rst [abc de...]
......
......@@ -20,7 +20,7 @@
#include "vtkGenericAdaptorCell.h"
#include "vtkGenericDataSet.h"
#include "vtkMath.h"
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkSmoothErrorMetric);
......
......@@ -17,7 +17,7 @@
#include "vtkIdList.h"
#include "vtkObjectFactory.h"
#include "vtkStructuredExtent.h"
#include <assert.h>
#include <cassert>
// Return the topological dimension of the data (e.g., 0, 1, 2, or 3D).
......
......@@ -20,7 +20,7 @@
#include "vtkDataObject.h"
#include "vtkUniformGrid.h"
#include "vtkInformation.h"
#include <assert.h>
#include <cassert>
//----------------------------------------------------------------
class AMRIndexIterator: public vtkObject
......
......@@ -25,7 +25,7 @@
#include "vtkPointData.h"
#include "vtkSmartPointer.h"
#include "vtkNew.h"
#include <assert.h>
#include <cassert>
#define CHECK(b, errors) if(!(b)){ errors++; cerr<<"Error on Line "<<__LINE__<<":"<<endl;}
......
......@@ -27,7 +27,7 @@
#include "vtkStringArray.h"
#include "vtkUnsignedShortArray.h"
#include <assert.h>
#include <cassert>
#include <cctype>
#include <cstring>
......
......@@ -11,7 +11,7 @@ All rights reserved.
#include "Node.h"
#include "Cell.h"
#include <assert.h>
#include <cassert>
#include <vtkUnstructuredGrid.h>
#include <vtkPoints.h>
......
......@@ -22,7 +22,7 @@
#include "vtkDataSetTriangleFilter.h"
#include "vtkPointDataToCellData.h"
#include "vtkImageDataToPointSet.h"
#include <assert.h>
#include <cassert>
bool TestStructured(int type)
{
......
......@@ -35,7 +35,7 @@
#include "vtkObjectFactory.h"
#include "vtkCompositeDataIterator.h"
#include "vtkSmartPointer.h"
#include <assert.h>
#include <cassert>
vtkStandardNewMacro(vtkCompositeCutter);
......
......@@ -31,7 +31,7 @@
#include "vtkFloatArray.h"
#include "vtkSmartPointer.h"
#include "vtkStreamingDemandDrivenPipeline.h"
#include <assert.h>
#include <cassert>
#include <vector>
using namespace std;
......
......@@ -23,7 +23,7 @@
#include "vtkPointData.h"
#include "vtkSmartPointer.h"
#include "vtkDoubleArray.h"
#include <assert.h>
#include <cassert>
int TestFieldNames(int, char*[])
{
......
......@@ -2,7 +2,7 @@
#include "vtkObjectFactory.h"
#include "vtkUniformGrid.h"
#include "vtkOverlappingAMR.h"
#include <assert.h>
#include <cassert>
//----------------------------------------------------------------------------
namespace
{
......
......@@ -26,7 +26,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkFloatArray.h"
#include <vector>
#include <assert.h>
#include <cassert>
#include <algorithm>
#define DEBUGSTREAKLINEFILTER 1
......
......@@ -21,7 +21,7 @@
#include <vtkIdList.h>
#include <vtkReflectionFilter.h>
#include <iostream>
#include <assert.h>
#include <cassert>
#define AssertMacro(b) if(!(b)){std::cerr <<"Failed to reflect pyramid"<<std::endl;return EXIT_FAILURE;}
......
......@@ -21,7 +21,7 @@ PURPOSE. See the above copyright notice for more information.
#include "vtkObjectFactory.h"
#include "vtkPiecewiseFunction.h"
#include <assert.h>
#include <cassert>
#include <algorithm> // for std::min()/std::max()
vtkStandardNewMacro(vtkSCurveSpline);
......
......@@ -55,7 +55,7 @@ PURPOSE. See the above copyright notice for more information.
#include <algorithm>
#include <math.h>
#include <assert.h>
#include <cassert>
class vtkYoungsMaterialInterfaceCellCut
{
......
......@@ -39,7 +39,7 @@
#include "vtkGenericClip.h"
#include "vtkGenericCellTessellator.h"
#include "vtkGenericSubdivisionErrorMetric.h"
#include <assert.h>
#include <cassert>
#include "vtkLookupTable.h"
#include "vtkDataSetMapper.h"
#include "vtkPolyData.h"
......
......@@ -36,7 +36,7 @@
#include "vtkGenericContourFilter.h"
#include "vtkGenericCellTessellator.h"
#include "vtkGenericSubdivisionErrorMetric.h"
#include <assert.h>
#include <cassert>
#include "vtkLookupTable.h"
#include "vtkPolyDataMapper.h"
#include "vtkPolyData.h"
......
......@@ -36,7 +36,7 @@
#include "vtkGenericCutter.h"
#include "vtkGenericCellTessellator.h"
#include "vtkGenericSubdivisionErrorMetric.h"
#include <assert.h>
#include <cassert>
#include "vtkLookupTable.h"
#include "vtkDataSetMapper.h"
#include "vtkPolyData.h"
......
......@@ -40,7 +40,7 @@
#include "vtkGenericDataSetTessellator.h"
#include "vtkGenericCellTessellator.h"
#include "vtkGenericSubdivisionErrorMetric.h"
#include <assert.h>
#include <cassert>
#include "vtkLookupTable.h"
#include "vtkDataSetMapper.h"
#include "vtkLabeledDataMapper.h"
......
......@@ -38,7 +38,7 @@
#include "vtkGenericGeometryFilter.h"
#include "vtkGenericCellTessellator.h"
#include "vtkGenericSubdivisionErrorMetric.h"
#include <assert.h>
#include <cassert>
#include "vtkLookupTable.h"
#include "vtkPolyDataMapper.h"
#include "vtkPolyData.h"
......
......@@ -36,7 +36,7 @@
#include "vtkGenericGeometryFilter.h"
#include "vtkGenericCellTessellator.h"
#include "vtkGenericSubdivisionErrorMetric.h"
#include <assert.h>
#include <cassert>
#include "vtkLookupTable.h"
#include "vtkPolyDataMapper.h"
#include "vtkPolyData.h"
......
......@@ -38,7 +38,7 @@
#include "vtkGenericGeometryFilter.h"
#include "vtkGenericCellTessellator.h"
#include "vtkGenericSubdivisionErrorMetric.h"
#include <assert.h>
#include <cassert>
#include "vtkLookupTable.h"
#include "vtkPolyDataMapper.h"
#include "vtkPolyData.h"
......
......@@ -37,7 +37,7 @@
#include "vtkBridgeDataSet.h"
#include "vtkGenericCellTessellator.h"
#include "vtkGenericSubdivisionErrorMetric.h"
#include <assert.h>
#include <cassert>
#include "vtkGeometricErrorMetric.h"
#include "vtkAttributesErrorMetric.h"
#include "vtkGenericOutlineFilter.h"
......
......@@ -33,7 +33,7 @@
#include "vtkDoubleArray.h"
#include "vtkPointData.h"
#include "vtkGenericAttribute.h"
#include <assert.h>
#include <cassert>
#include <string>
#include <vtksys/ios/sstream>
......
......@@ -30,7 +30,7 @@
#include "vtkGenericAttributeCollection.h"
#include "vtkGenericAttribute.h"
#include "vtkGenericAdaptorCell.h"
#include <assert.h>
#include <cassert>
#include "vtkInformation.h"
#include "vtkExecutive.h" // for GetExecutive()
......
......@@ -49,7 +49,7 @@
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkXMLUnstructuredGridReader.h"
#include <assert.h>