Skip to content

Commit

Permalink
vtkSetGet: use VTK_SIZEHINT
Browse files Browse the repository at this point in the history
  • Loading branch information
mathstuf committed Dec 14, 2017
1 parent a1ede2a commit 13570d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Common/Core/vtkSetGet.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ void Set##name (type _arg[2]) \
}

#define vtkGetVector2Macro(name,type) \
virtual type *Get##name () \
virtual type *Get##name () VTK_SIZEHINT(2) \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \
Expand Down Expand Up @@ -304,7 +304,7 @@ virtual void Set##name (type _arg[3]) \
}

#define vtkGetVector3Macro(name,type) \
virtual type *Get##name () \
virtual type *Get##name () VTK_SIZEHINT(3) \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \
Expand Down Expand Up @@ -341,7 +341,7 @@ virtual void Set##name (type _arg[4]) \


#define vtkGetVector4Macro(name,type) \
virtual type *Get##name () \
virtual type *Get##name () VTK_SIZEHINT(4) \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \
Expand Down Expand Up @@ -380,7 +380,7 @@ virtual void Set##name (type _arg[6]) \
}

#define vtkGetVector6Macro(name,type) \
virtual type *Get##name () \
virtual type *Get##name () VTK_SIZEHINT(6) \
{ \
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning " << #name " pointer " << this->name); \
return this->name; \
Expand Down

0 comments on commit 13570d3

Please sign in to comment.