Commit 753dcec5 authored by Sean McBride's avatar Sean McBride

Used clang-tidy's "modernize-use-override" to add some C++11 overrides

It doesn't seem to have got everything, but it's a start.

Some resulting whitespace is suboptimal, but one day
we can fix that with clang-format. :)

Just ran this command:
run-clang-tidy.py -checks=-*,modernize-use-override -fix

(I actually had to build my own clang to make clang-tidy
output "VTK_OVERRIDE" instead of "override".)
parent ea205024
Pipeline #19375 passed with stage
......@@ -39,7 +39,7 @@ public:
static ContextTest *New();
vtkTypeMacro(ContextTest, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter);
bool Paint(vtkContext2D *painter) VTK_OVERRIDE;
};
//----------------------------------------------------------------------------
......
......@@ -39,7 +39,7 @@ public:
static ContextUnicode *New();
vtkTypeMacro(ContextUnicode, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter);
bool Paint(vtkContext2D *painter) VTK_OVERRIDE;
std::string FontFile;
};
......
......@@ -45,7 +45,7 @@ public:
}
void Execute( vtkObject *caller, unsigned long event,
void *vtkNotUsed(callData) )
void *vtkNotUsed(callData) ) VTK_OVERRIDE
{
vtkColorTransferFunction* self =
reinterpret_cast< vtkColorTransferFunction* >( caller );
......
......@@ -37,7 +37,7 @@ public:
static APIDiagram *New();
vtkTypeMacro(APIDiagram, vtkContextItem);
// Paint event for the chart, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter);
bool Paint(vtkContext2D *painter) VTK_OVERRIDE;
};
//----------------------------------------------------------------------------
......
......@@ -137,7 +137,7 @@ class vtkPlotBarSegment : public vtkObject {
this->Colors = NULL;
}
~vtkPlotBarSegment()
~vtkPlotBarSegment() VTK_OVERRIDE
{
delete this->Sorted;
}
......
......@@ -40,25 +40,25 @@ public:
this->NumberOfComponents = array->GetNumberOfComponents();
this->MaxId = array->GetMaxId();
}
ValueType& GetValueReference(vtkIdType idx)
ValueType& GetValueReference(vtkIdType idx) VTK_OVERRIDE
{
return *this->Data->GetPointer(idx);
}
// These pure virtuals are no-op -- all we care about is GetValueReference
// to test the iterator.
void SetTypedTuple(vtkIdType, const ValueType *) {}
void InsertTypedTuple(vtkIdType, const ValueType *) {}
vtkIdType InsertNextTypedTuple(const ValueType *) { return 0; }
vtkIdType LookupTypedValue(ValueType) { return 0; }
void LookupTypedValue(ValueType, vtkIdList*) {}
ValueType GetValue(vtkIdType) const { return 0; }
void SetValue(vtkIdType, ValueType) {}
void GetTypedTuple(vtkIdType, ValueType*) const {}
vtkIdType InsertNextValue(ValueType) { return 0; }
void InsertValue(vtkIdType, ValueType) {}
int Allocate(vtkIdType, vtkIdType) { return 0; }
int Resize(vtkIdType) { return 0; }
void SetTypedTuple(vtkIdType, const ValueType *) VTK_OVERRIDE {}
void InsertTypedTuple(vtkIdType, const ValueType *) VTK_OVERRIDE {}
vtkIdType InsertNextTypedTuple(const ValueType *) VTK_OVERRIDE { return 0; }
vtkIdType LookupTypedValue(ValueType) VTK_OVERRIDE { return 0; }
void LookupTypedValue(ValueType, vtkIdList*) VTK_OVERRIDE {}
ValueType GetValue(vtkIdType) const VTK_OVERRIDE { return 0; }
void SetValue(vtkIdType, ValueType) VTK_OVERRIDE {}
void GetTypedTuple(vtkIdType, ValueType*) const VTK_OVERRIDE {}
vtkIdType InsertNextValue(ValueType) VTK_OVERRIDE { return 0; }
void InsertValue(vtkIdType, ValueType) VTK_OVERRIDE {}
int Allocate(vtkIdType, vtkIdType) VTK_OVERRIDE { return 0; }
int Resize(vtkIdType) VTK_OVERRIDE { return 0; }
};
}
......
......@@ -27,8 +27,8 @@ public:
static vtkTestReferenceLoop* New() { return new vtkTestReferenceLoop; }
vtkTypeMacro(vtkTestReferenceLoop, vtkObject);
void Register(vtkObjectBase* o) { this->RegisterInternal(o, 1); }
void UnRegister(vtkObjectBase* o) { this->UnRegisterInternal(o, 1); }
void Register(vtkObjectBase* o) VTK_OVERRIDE { this->RegisterInternal(o, 1); }
void UnRegister(vtkObjectBase* o) VTK_OVERRIDE { this->UnRegisterInternal(o, 1); }
protected:
vtkTestReferenceLoop()
......@@ -46,7 +46,7 @@ protected:
vtkDebugLeaks::ConstructClass("vtkTestReferenceLoop");
#endif
}
~vtkTestReferenceLoop()
~vtkTestReferenceLoop() VTK_OVERRIDE
{
if(this->Other)
{
......@@ -55,7 +55,7 @@ protected:
}
}
void ReportReferences(vtkGarbageCollector* collector)
void ReportReferences(vtkGarbageCollector* collector) VTK_OVERRIDE
{
vtkGarbageCollectorReport(collector, this->Other, "Other");
}
......
......@@ -28,7 +28,7 @@ class vtkTestPoints : public vtkPoints
{
public:
// Methods from vtkObject
~vtkTestPoints()
~vtkTestPoints() VTK_OVERRIDE
{
}
......@@ -44,7 +44,7 @@ private:
class vtkTestPoints2 : public vtkPoints
{
public:
~vtkTestPoints2()
~vtkTestPoints2() VTK_OVERRIDE
{
}
......@@ -66,8 +66,8 @@ class VTK_EXPORT TestFactory : public vtkObjectFactory
public:
TestFactory();
static TestFactory* New() { return new TestFactory;}
virtual const char* GetVTKSourceVersion() { return VTK_SOURCE_VERSION; }
const char* GetDescription() { return "A fine Test Factory"; }
const char* GetVTKSourceVersion() VTK_OVERRIDE { return VTK_SOURCE_VERSION; }
const char* GetDescription() VTK_OVERRIDE { return "A fine Test Factory"; }
protected:
TestFactory(const TestFactory&);
......
......@@ -52,7 +52,7 @@ public:
static vtkSimpleCommand* New() { return new vtkSimpleCommand();}
vtkTypeMacro(vtkSimpleCommand, vtkCommand);
virtual void Execute(vtkObject*, unsigned long, void*)
void Execute(vtkObject*, unsigned long, void*) VTK_OVERRIDE
{
this->MTime.Modified();
}
......
......@@ -197,15 +197,15 @@ public:
vtkTypeMacro(vtkGarbageCollectorImpl, vtkGarbageCollector);
vtkGarbageCollectorImpl();
~vtkGarbageCollectorImpl();
~vtkGarbageCollectorImpl() VTK_OVERRIDE;
// Description:
// Prevent normal vtkObject reference counting behavior.
virtual void Register(vtkObjectBase*);
void Register(vtkObjectBase*) VTK_OVERRIDE;
// Description:
// Prevent normal vtkObject reference counting behavior.
virtual void UnRegister(vtkObjectBase*);
void UnRegister(vtkObjectBase*) VTK_OVERRIDE;
// Perform a collection check.
void CollectInternal(vtkObjectBase* root);
......@@ -359,7 +359,7 @@ public:
// Callback from objects to report references.
void Report(vtkObjectBase* obj, void* ptr);
virtual void Report(vtkObjectBase* obj, void* ptr, const char* desc);
void Report(vtkObjectBase* obj, void* ptr, const char* desc) VTK_OVERRIDE;
// Collect the objects of the given leaked component.
void CollectComponent(ComponentType* c);
......
......@@ -911,8 +911,8 @@ public:
{ return new vtkObjectCommandInternal(); }
vtkTypeMacro(vtkObjectCommandInternal, vtkCommand);
virtual void Execute(
vtkObject *caller, unsigned long eventId, void *callData)
void Execute(
vtkObject *caller, unsigned long eventId, void *callData) VTK_OVERRIDE
{
if (this->Callable)
{
......@@ -936,7 +936,7 @@ protected:
{
this->Callable = NULL;
}
~vtkObjectCommandInternal()
~vtkObjectCommandInternal() VTK_OVERRIDE
{
delete this->Callable;
}
......
......@@ -63,7 +63,7 @@ public:
protected:
vtkGraphEdgePoints() { }
~vtkGraphEdgePoints() { }
~vtkGraphEdgePoints() VTK_OVERRIDE { }
private:
vtkGraphEdgePoints(const vtkGraphEdgePoints&) VTK_DELETE_FUNCTION;
......
......@@ -156,19 +156,19 @@ public:
// Return the id of the current leaf in order to
// access to the data.
// \pre is_leaf: CurrentIsLeaf()
int GetLeafId()
int GetLeafId() VTK_OVERRIDE
{
assert("pre: is_leaf" && CurrentIsLeaf());
return this->Cursor;
}
// Status
virtual int CurrentIsLeaf()
int CurrentIsLeaf() VTK_OVERRIDE
{
return this->IsLeaf;
}
virtual int CurrentIsRoot()
int CurrentIsRoot() VTK_OVERRIDE
{
return (this->IsLeaf && this->Cursor==0 && this->Tree->GetLeafParentSize()==1) || (!this->IsLeaf && this->Cursor==1);
}
......@@ -177,7 +177,7 @@ public:
// Description:
// Return the level of the node pointed by the cursor.
// \post positive_result: result>=0
virtual int GetCurrentLevel()
int GetCurrentLevel() VTK_OVERRIDE
{
int result=this->GetChildHistorySize();
assert("post: positive_result" && result>=0);
......@@ -189,7 +189,7 @@ public:
// Return the child number of the current node relative to its parent.
// \pre not_root: !CurrentIsRoot().
// \post valid_range: result>=0 && result<GetNumberOfChildren()
virtual int GetChildIndex()
int GetChildIndex() VTK_OVERRIDE
{
assert("post: valid_range" && this->ChildIndex>=0 && this->ChildIndex<GetNumberOfChildren());
return this->ChildIndex;
......@@ -199,7 +199,7 @@ public:
// Are the children of the current node all leaves?
// This query can be called also on a leaf node.
// \post compatible: result implies !CurrentIsLeaf()
virtual int CurrentIsTerminalNode()
int CurrentIsTerminalNode() VTK_OVERRIDE
{
int result=!this->IsLeaf;
if(result)
......@@ -216,7 +216,7 @@ public:
// Cursor movement.
// \pre can be root
// \post is_root: CurrentIsRoot()
virtual void ToRoot()
void ToRoot() VTK_OVERRIDE
{
this->ChildHistory.clear();
this->IsLeaf=this->Tree->GetLeafParentSize()==1;
......@@ -239,7 +239,7 @@ public:
//---------------------------------------------------------------------------
// \pre not_root: !CurrentIsRoot()
virtual void ToParent()
void ToParent() VTK_OVERRIDE
{
assert("pre: not_root" && !CurrentIsRoot());
if(this->IsLeaf)
......@@ -265,7 +265,7 @@ public:
//---------------------------------------------------------------------------
// \pre not_leaf: !CurrentIsLeaf()
// \pre valid_child: child>=0 && child<this->GetNumberOfChildren()
virtual void ToChild(int child)
void ToChild(int child) VTK_OVERRIDE
{
assert("pre: not_leaf" && !CurrentIsLeaf());
assert("pre: valid_child" && child>=0 && child<this->GetNumberOfChildren());
......@@ -293,7 +293,7 @@ public:
// \pre other_exists: other!=0
// \pre same_hyperoctree: this->SameTree(other)
// \post equal: this->IsEqual(other)
virtual void ToSameNode(vtkHyperOctreeCursor *other)
void ToSameNode(vtkHyperOctreeCursor *other) VTK_OVERRIDE
{
assert("pre: other_exists" && other!=0);
assert("pre: same_hyperoctree" && this->SameTree(other));
......@@ -317,7 +317,7 @@ public:
// Is `this' equal to `other'?
// \pre other_exists: other!=0
// \pre same_hyperoctree: this->SameTree(other);
virtual int IsEqual(vtkHyperOctreeCursor *other)
int IsEqual(vtkHyperOctreeCursor *other) VTK_OVERRIDE
{
assert("pre: other_exists" && other!=0);
assert("pre: same_hyperoctree" && this->SameTree(other));
......@@ -341,7 +341,7 @@ public:
// Create a copy of `this'.
// \post results_exists:result!=0
// \post same_tree: result->SameTree(this)
virtual vtkHyperOctreeCursor *Clone()
vtkHyperOctreeCursor *Clone() VTK_OVERRIDE
{
vtkCompactHyperOctreeCursor<D> *result=this->NewInstance();
assert("post: results_exists" && result!=0);
......@@ -354,7 +354,7 @@ public:
// Description:
// Are `this' and `other' pointing on the same hyperoctree?
// \pre other_exists: other!=0
virtual int SameTree(vtkHyperOctreeCursor *other)
int SameTree(vtkHyperOctreeCursor *other) VTK_OVERRIDE
{
assert("pre: other_exists" && other!=0);
vtkCompactHyperOctreeCursor<D> *o=vtkCompactHyperOctreeCursor<D>::SafeDownCast(other);
......@@ -372,7 +372,7 @@ public:
// uniform grid of 1<<GetCurrentLevel() cells in each dimension.
// \pre valid_range: d>=0 && d<GetDimension()
// \post valid_result: result>=0 && result<(1<<GetCurrentLevel())
virtual int GetIndex(int d)
int GetIndex(int d) VTK_OVERRIDE
{
assert("pre: valid_range" && d>=0 && d<this->GetDimension());
......@@ -386,7 +386,7 @@ public:
// Description:
// Return the number of children for each node of the tree.
// \post positive_number: result>0
virtual int GetNumberOfChildren()
int GetNumberOfChildren() VTK_OVERRIDE
{
return 1<<D;
}
......@@ -395,7 +395,7 @@ public:
// Description:
// Return the dimension of the tree.
// \post positive_result: result>=0
virtual int GetDimension()
int GetDimension() VTK_OVERRIDE
{
assert("post: positive_result " && D>0);
assert("post: up_to_3 " && D<=3); // and then
......@@ -412,8 +412,8 @@ public:
// \pre indices_exists: indices!=0
// \pre valid_size: sizeof(indices)==GetDimension()
// \pre valid_level: level>=0
virtual void MoveToNode(int *indices,
int level)
void MoveToNode(int *indices,
int level) VTK_OVERRIDE
{
assert("pre: indices_exists" && indices!=0);
assert("pre: valid_level" && level>=0);
......@@ -448,7 +448,7 @@ public:
//---------------------------------------------------------------------------
// Description
// Did the last call to MoveToNode succeed?
virtual int Found()
int Found() VTK_OVERRIDE
{
return this->IsFound;
}
......@@ -674,7 +674,7 @@ public:
// Description:
// Restore the initial state: only one node and one leaf: the root.
// Attributes is empty.
virtual void Initialize()
void Initialize() VTK_OVERRIDE
{
this->Nodes.resize(1);
this->Nodes[0].SetParent(0);
......@@ -694,7 +694,7 @@ public:
}
//---------------------------------------------------------------------------
virtual vtkHyperOctreeCursor *NewCursor()
vtkHyperOctreeCursor *NewCursor() VTK_OVERRIDE
{
vtkCompactHyperOctreeCursor<D> *result =
vtkCompactHyperOctreeCursor<D>::New();
......@@ -703,7 +703,7 @@ public:
}
//---------------------------------------------------------------------------
virtual ~vtkCompactHyperOctree()
~vtkCompactHyperOctree() VTK_OVERRIDE
{
if (this->Attributes != 0)
{
......@@ -712,7 +712,7 @@ public:
}
//--------------------------------------------------------------------------
virtual void DeepCopy(vtkHyperOctreeInternal *src)
void DeepCopy(vtkHyperOctreeInternal *src) VTK_OVERRIDE
{
vtkCompactHyperOctree<D>* octree =
vtkCompactHyperOctree<D>::SafeDownCast(src);
......@@ -725,7 +725,7 @@ public:
}
//---------------------------------------------------------------------------
virtual vtkIdType GetNumberOfLeaves()
vtkIdType GetNumberOfLeaves() VTK_OVERRIDE
{
return this->LeafParent.size();
}
......@@ -734,7 +734,7 @@ public:
// Description:
// Return the number of levels.
// \post result_greater_or_equal_to_one: result>=1
virtual vtkIdType GetNumberOfLevels()
vtkIdType GetNumberOfLevels() VTK_OVERRIDE
{
assert("post: result_greater_or_equal_to_one" && this->NumberOfLevels>=1);
return this->NumberOfLevels;
......@@ -762,7 +762,7 @@ public:
//---------------------------------------------------------------------------
// Description:
// Public only for the vtkCompactHyperOctreeCursor.
virtual int GetNumberOfNodes()
int GetNumberOfNodes() VTK_OVERRIDE
{
assert("post: not_empty" && this->Nodes.size()>0);
return static_cast<int>(this->Nodes.size());
......@@ -774,7 +774,7 @@ public:
// At the end, cursor points on the node that used to be leaf.
// \pre leaf_exists: leaf!=0
// \pre is_a_leaf: leaf->CurrentIsLeaf()
void SubdivideLeaf(vtkHyperOctreeCursor *leaf)
void SubdivideLeaf(vtkHyperOctreeCursor *leaf) VTK_OVERRIDE
{
assert("pre: leaf_exists" && leaf!=0);
assert("pre: is_a_leaf" && leaf->CurrentIsLeaf());
......@@ -847,7 +847,7 @@ public:
// \pre node_exists: node!=0
// \pre node_is_node: !node->CurrentIsLeaf()
// \pre children_are_leaves: node->CurrentIsTerminalNode()
void CollapseTerminalNode(vtkHyperOctreeCursor *node)
void CollapseTerminalNode(vtkHyperOctreeCursor *node) VTK_OVERRIDE
{
assert("pre: node_exists" && node!=0);
assert("pre: node_is_node" && !node->CurrentIsLeaf());
......@@ -867,7 +867,7 @@ public:
}
//---------------------------------------------------------------------------
void PrintSelf(ostream& os, vtkIndent indent)
void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE
{
this->Superclass::PrintSelf(os,indent);
......@@ -901,7 +901,7 @@ public:
//---------------------------------------------------------------------------
// Description:
// Set the internal attributes.
void SetAttributes(vtkDataSetAttributes *attributes)
void SetAttributes(vtkDataSetAttributes *attributes) VTK_OVERRIDE
{
assert("pre: attributes_exist" && attributes!=0);
if(this->Attributes!=attributes)
......@@ -919,7 +919,7 @@ public:
// Description:
// Return memory used in kibibytes (1024 bytes).
// Ignore the attribute array because its size is added by the data set.
unsigned int GetActualMemorySize()
unsigned int GetActualMemorySize() VTK_OVERRIDE
{
size_t size;
size = sizeof(int) * this->GetNumberOfLeaves();
......
This diff is collapsed.
......@@ -447,7 +447,7 @@ public:
}
// Release allocated memory
virtual ~BucketList()
~BucketList() VTK_OVERRIDE
{
delete [] this->Map;
delete [] this->Offsets;
......@@ -616,7 +616,7 @@ public:
};
// Build the map and other structures to support locator operations
virtual void BuildLocator()
void BuildLocator() VTK_OVERRIDE
{
// Place each point in a bucket
//
......
......@@ -53,7 +53,7 @@ public:
virtual unsigned int GetFlatIndex() { return this->Index;}
protected:
AMRIndexIterator(): Level(0), Index(0) {}
~AMRIndexIterator(){};
~AMRIndexIterator() VTK_OVERRIDE{};
unsigned int Level;
int Index;
unsigned int NumLevels;
......@@ -90,12 +90,12 @@ public:
this->Next();
}
protected:
virtual void AdvanceIndex()
void AdvanceIndex() VTK_OVERRIDE
{
this->InternalIdx++;
Superclass::Index = static_cast<size_t>(this->InternalIdx) < this->DataBlocks->size()? (*this->DataBlocks)[this->InternalIdx].Index : 0;
}
virtual bool IsDone() { return static_cast<size_t>(this->InternalIdx) >= this->DataBlocks->size();}
bool IsDone() VTK_OVERRIDE { return static_cast<size_t>(this->InternalIdx) >= this->DataBlocks->size();}
const vtkAMRDataInternals::BlockList* DataBlocks;
int InternalIdx;
private:
......
......@@ -43,12 +43,12 @@ public:
protected:
vtkDummyImageFilter() {};
~vtkDummyImageFilter() {};
~vtkDummyImageFilter() VTK_OVERRIDE {};
int RequestData(
vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
vtkInformationVector* outputVector) VTK_OVERRIDE;
private:
vtkDummyImageFilter(const vtkDummyImageFilter&) VTK_DELETE_FUNCTION;
......
......@@ -54,9 +54,9 @@ protected:
this->Result = -1;
}
virtual int RequestInformation(vtkInformation*,
int RequestInformation(vtkInformation*,
vtkInformationVector**,
vtkInformationVector* outputVector)
vtkInformationVector* outputVector) VTK_OVERRIDE
{
vtkInformation* outInfo = outputVector->GetInformationObject(0);
vtkPolyData* pd = vtkPolyData::New();
......@@ -64,9 +64,9 @@ protected:
pd->Delete();
return 1;
}
virtual int RequestData(vtkInformation*,
int RequestData(vtkInformation*,
vtkInformationVector**,
vtkInformationVector* outputVector)
vtkInformationVector* outputVector) VTK_OVERRIDE
{
// Here we verify that a request set at the end of the pipeline
// made it to here properly.
......
......@@ -42,7 +42,7 @@ public:
vtkGetMacro(NumRequestUpdateTime, int);
vtkGetMacro(NumRequestTimeDependentInformation, int);
virtual int ProcessRequest(vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector)
int ProcessRequest(vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector) VTK_OVERRIDE
{
if(request->Has(vtkDemandDrivenPipeline::REQUEST_INFORMATION()))
{
......@@ -112,7 +112,7 @@ public:
this->HasTimeDependentData=false;
}
int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector)
int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector) VTK_OVERRIDE
{
vtkInformation *outInfo = outputVector->GetInformationObject(0);
vtkImageData *outImage = vtkImageData::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));
......@@ -125,7 +125,7 @@ public:
return 1;
}
virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector)
int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector) VTK_OVERRIDE
{
vtkInformation *outInfo = outputVector->GetInformationObject(0);
double range[2]= {0,9};
......@@ -139,7 +139,7 @@ public:
return 1;
}
int FillOutputPortInformation(int, vtkInformation *info)
int FillOutputPortInformation(int, vtkInformation *info) VTK_OVERRIDE
{
info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkImageData");
return 1;
......@@ -162,21 +162,21 @@ public:
vtkSetMacro(StartTime, double);
vtkSetMacro(TimeIterations, int);
void PrintSelf(ostream&, vtkIndent){}
void PrintSelf(ostream&, vtkIndent) VTK_OVERRIDE{}
int FillInputPortInformation(int, vtkInformation *info)
int FillInputPortInformation(int, vtkInformation *info) VTK_OVERRIDE
{
info->Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), "vtkDataObject");
return 1;
}
int FillOutputPortInformation(int, vtkInformation *info)
int FillOutputPortInformation(int, vtkInformation *info) VTK_OVERRIDE
{
info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkImageData");
return 1;
}
int RequestData(vtkInformation* request, vtkInformationVector**in, vtkInformationVector* )
int RequestData(vtkInformation* request, vtkInformationVector**in, vtkInformationVector* ) VTK_OVERRIDE
{
cout<<"Has TD: "<<
in[0]->GetInformationObject(0)->Get(vtkStreamingDemandDrivenPipeline::TIME_DEPENDENT_INFORMATION())<<endl;
......@@ -193,7 +193,7 @@ public:
return 1;
}
int RequestUpdateExtent(vtkInformation*, vtkInformationVector** inputVector, vtkInformationVector*)
int RequestUpdateExtent(vtkInformation*, vtkInformationVector** inputVector, vtkInformationVector*) VTK_OVERRIDE
{
vtkInformation *inInfo = inputVector[0]->GetInformationObject(0);
double timeStep= this->StartTime + (double)this->TimeIndex;
......
......@@ -53,7 +53,7 @@ public:
std::vector<vtkExecutive*> Executives;
std::vector<int> Ports;
virtual ~vtkInformationExecutivePortVectorValue();
~vtkInformationExecutivePortVectorValue() VTK_OVERRIDE;
void UnRegisterAllExecutives();
};
......
......@@ -100,7 +100,7 @@ public:
this->Out->Copy(outInfoVec,1);
}
~ProcessBlockData()
~ProcessBlockData() VTK_OVERRIDE
{
DeleteAll(this->In, this->InSize);
this->Out->Delete();
......
......@@ -365,8 +365,8 @@ public:
vtkDebugLeaks::ConstructClass("vtkSimpleTransform");
#endif
return new vtkSimpleTransform; };