Commit 2851de36 authored by Sean McBride's avatar Sean McBride

Replaced more virtual with VTK_OVERRIDE

parent 8e083bad
......@@ -29,18 +29,18 @@
// \code
//
// public:
// virtual void Register(vtkObjectBase* o)
// void Register(vtkObjectBase* o) VTK_OVERRIDE
// {
// this->RegisterInternal(o, true);
// }
// virtual void UnRegister(vtkObjectBase* o)
// void UnRegister(vtkObjectBase* o) VTK_OVERRIDE
// {
// this->UnRegisterInternal(o, true);
// }
//
// protected:
//
// virtual void ReportReferences(vtkGarbageCollector* collector)
// void ReportReferences(vtkGarbageCollector* collector) VTK_OVERRIDE
// {
// // Report references held by this object that may be in a loop.
// this->Superclass::ReportReferences(collector);
......
......@@ -40,11 +40,11 @@ public:
// 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;
// Description:
// Get the name of the key. This is not the type of the key, but
......
......@@ -144,7 +144,7 @@ public:
// Description:
// Return the current reference count of this object.
int GetReferenceCount()
int GetReferenceCount()
{
return this->ReferenceCount;
}
......
......@@ -605,7 +605,7 @@ virtual double *Get##name() \
// superclass of thisClass.
#define vtkAbstractTypeMacroWithNewInstanceType(thisClass,superclass,instanceType,thisClassName) \
protected: \
virtual const char* GetClassNameInternal() const \
const char* GetClassNameInternal() const VTK_OVERRIDE \
{ \
return thisClassName; \
} \
......@@ -619,7 +619,7 @@ virtual double *Get##name() \
} \
return superclass::IsTypeOf(type); \
} \
virtual vtkTypeBool IsA(const char *type) \
vtkTypeBool IsA(const char *type) VTK_OVERRIDE \
{ \
return this->thisClass::IsTypeOf(type); \
} \
......
......@@ -80,7 +80,7 @@ protected:
// We don't expose this publicly, because the typename we generate
// for our template instantiations isn't human-readable, unlike
// "normal" VTK classes.
virtual vtkTypeBool IsA(const char *type)
vtkTypeBool IsA(const char *type) VTK_OVERRIDE
{
return this->IsTypeOf(type);
}
......@@ -101,7 +101,7 @@ private:
return thisType.c_str();
}
virtual const char* GetClassNameInternal() const
const char* GetClassNameInternal() const VTK_OVERRIDE
{
return this->GetClassNameInternalCachedName();
}
......
......@@ -134,8 +134,8 @@ public:
// Description:
// Handle the PointSet <-> Locator loop.
virtual void Register(vtkObjectBase *o);
virtual void UnRegister(vtkObjectBase *o);
void Register(vtkObjectBase *o) VTK_OVERRIDE;
void UnRegister(vtkObjectBase *o) VTK_OVERRIDE;
protected:
vtkLocator();
......
......@@ -107,8 +107,8 @@ public:
// Description:
// Overwritten to enable garbage collection.
virtual void Register(vtkObjectBase *o);
virtual void UnRegister(vtkObjectBase *o);
void Register(vtkObjectBase *o) VTK_OVERRIDE;
void UnRegister(vtkObjectBase *o) VTK_OVERRIDE;
protected:
vtkVisibilitySort();
......
......@@ -93,8 +93,8 @@ public:
// Description:
// Take part in garbage collection.
virtual void Register(vtkObjectBase *o);
virtual void UnRegister(vtkObjectBase *o);
void Register(vtkObjectBase *o) VTK_OVERRIDE;
void UnRegister(vtkObjectBase *o) VTK_OVERRIDE;
enum {
VERTS = 0x1,
......
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