Commit 000e36f1 authored by Berk Geveci's avatar Berk Geveci
Browse files

Minor tweak to signature to improve const correctness.

parent 67d1d388
Pipeline #5830 passed with stage
......@@ -1481,7 +1481,7 @@ int vtkAlgorithm::Update(vtkInformation* requests)
//----------------------------------------------------------------------------
int vtkAlgorithm::UpdatePiece(
int piece, int numPieces, int ghostLevels, int* extents)
int piece, int numPieces, int ghostLevels, const int extents[6])
{
typedef vtkStreamingDemandDrivenPipeline vtkSDDP;
......@@ -1497,7 +1497,7 @@ int vtkAlgorithm::UpdatePiece(
}
//----------------------------------------------------------------------------
int vtkAlgorithm::UpdateExtent(int* extents)
int vtkAlgorithm::UpdateExtent(const int extents[6])
{
typedef vtkStreamingDemandDrivenPipeline vtkSDDP;
......@@ -1508,7 +1508,7 @@ int vtkAlgorithm::UpdateExtent(int* extents)
//----------------------------------------------------------------------------
int vtkAlgorithm::UpdateTimeStep(
double time, int piece, int numPieces, int ghostLevels, int* extents)
double time, int piece, int numPieces, int ghostLevels, const int extents[6])
{
typedef vtkStreamingDemandDrivenPipeline vtkSDDP;
......
......@@ -494,13 +494,13 @@ public:
// Update(int port, vtkInformationVector* requests) for details.
// Supports piece and extent (optional) requests.
virtual int UpdatePiece(
int piece, int numPieces, int ghostLevels, int* extents=0);
int piece, int numPieces, int ghostLevels, const int extents[6]=0);
// Description:
// Convenience method to update an algorithm after passing requests
// to its first output port.
// Supports extent request.
virtual int UpdateExtent(int* extents);
virtual int UpdateExtent(const int extents[6]=0);
// Description:
// Convenience method to update an algorithm after passing requests
......@@ -508,7 +508,7 @@ public:
// Update(int port, vtkInformationVector* requests) for details.
// Supports time, piece (optional) and extent (optional) requests.
virtual int UpdateTimeStep(double time,
int piece=-1, int numPieces=1, int ghostLevels=0, int* extents=0);
int piece=-1, int numPieces=1, int ghostLevels=0, const int extents[6]=0);
// Description:
// Bring the algorithm's information up-to-date.
......
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