Commit 93b12c9a authored by Sean McBride's avatar Sean McBride

Put initial assignment at declaration

Change-Id: Id2c6b1f3497100b2b9b4509acc30dde5a1258869
parent ab36a82e
......@@ -1046,8 +1046,8 @@ inline int vtkMath::Ceil(double x)
//----------------------------------------------------------------------------
inline float vtkMath::Normalize(float x[3])
{
float den;
if ( ( den = vtkMath::Norm( x ) ) != 0.0 )
float den = vtkMath::Norm( x );
if ( den != 0.0 )
{
for (int i=0; i < 3; i++)
{
......@@ -1060,8 +1060,8 @@ inline float vtkMath::Normalize(float x[3])
//----------------------------------------------------------------------------
inline double vtkMath::Normalize(double x[3])
{
double den;
if ( ( den = vtkMath::Norm( x ) ) != 0.0 )
double den = vtkMath::Norm( x );
if ( den != 0.0 )
{
for (int i=0; i < 3; i++)
{
......@@ -1074,8 +1074,8 @@ inline double vtkMath::Normalize(double x[3])
//----------------------------------------------------------------------------
inline float vtkMath::Normalize2D(float x[3])
{
float den;
if ( ( den = vtkMath::Norm2D( x ) ) != 0.0 )
float den = vtkMath::Norm2D( x );
if ( den != 0.0 )
{
for (int i=0; i < 2; i++)
{
......@@ -1088,8 +1088,8 @@ inline float vtkMath::Normalize2D(float x[3])
//----------------------------------------------------------------------------
inline double vtkMath::Normalize2D(double x[3])
{
double den;
if ( ( den = vtkMath::Norm2D( x ) ) != 0.0 )
double den = vtkMath::Norm2D( x );
if ( den != 0.0 )
{
for (int i=0; i < 2; i++)
{
......
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