Commit 39f1c3ae authored by Francois Bertel's avatar Francois Bertel
Browse files

COMP:Fixed old-style cast.

parent 6d522821
......@@ -22,7 +22,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkCamera, "1.112");
vtkCxxRevisionMacro(vtkCamera, "1.113");
//----------------------------------------------------------------------------
// Needed when we don't use the vtkStandardNewMacro.
......@@ -105,7 +105,7 @@ vtkCamera *vtkCamera::New()
{
// First try to create the object from the vtkObjectFactory
vtkObject* ret = vtkGraphicsFactory::CreateInstance("vtkCamera");
return (vtkCamera*)ret;
return static_cast<vtkCamera *>(ret);
}
//----------------------------------------------------------------------------
......
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