summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpaviot <tpaviot@gmail.com>2011-07-19 11:39:29 +0200
committertpaviot <tpaviot@gmail.com>2011-07-19 11:39:39 +0200
commit74b613cfaddaee006817ec84ea5e46249de91bc1 (patch)
treefe9065b17cc995e6ec76796e51b2cca52bfece39
parent477374323d7f6556bdc004f3dcae9b44f9529def (diff)
downloadoce-74b613cfaddaee006817ec84ea5e46249de91bc1.tar.gz
oce-74b613cfaddaee006817ec84ea5e46249de91bc1.zip
[warning-fix][uninitialized-var]
Fixed potential uninitialized variable in NIS_View.cxx
-rw-r--r--src/NIS/NIS_View.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NIS/NIS_View.cxx b/src/NIS/NIS_View.cxx
index 0fcd0483..02c0943d 100644
--- a/src/NIS/NIS_View.cxx
+++ b/src/NIS/NIS_View.cxx
@@ -116,7 +116,7 @@ Standard_Boolean NIS_View::FitAll3d (const Quantity_Coefficient theCoef)
// Check that the box is not empty
if (aBox.IsVoid() == Standard_False && MyView->IsDefined() == Standard_True) {
// Convert the 3D box to 2D representation in view coordinates
- Standard_Real Umin,Umax,Vmin,Vmax,U,V,W;
+ Standard_Real Umin=0.0,Umax=0.0,Vmin=0.0,Vmax=0.0,U,V,W;
gp_XYZ aCoord;
const gp_XYZ aCorner[2] = { aBox.CornerMin(), aBox.CornerMax() };