0030448: Coding - add typo detection to derivation creation methods using Standard_NO...
[occt.git] / src / Geom2d / Geom2d_VectorWithMagnitude.cxx
index aa86352..147cc66 100644 (file)
@@ -135,8 +135,7 @@ void Geom2d_VectorWithMagnitude::Normalize () { gpVec2d.Normalize (); }
 
 Handle(Geom2d_VectorWithMagnitude) Geom2d_VectorWithMagnitude::Normalized () const { 
 
-   gp_Vec2d V = gpVec2d;
-   V.Normalized ();
+   gp_Vec2d V = gpVec2d.Normalized();
    return new VectorWithMagnitude (V);
 }