1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0024275: Cppcheck warnings on uninitialized class members

Removed warning of cppcheck on uninitialized class members for non-array cases
New additional compilation warnings on Windows platform from file OSD_Path.cxx were fixed
Warnings about wrong initialization removed
This commit is contained in:
ski
2013-11-14 11:08:41 +04:00
committed by bugmaster
parent e79a94b9a5
commit c24d401753
78 changed files with 285 additions and 102 deletions

View File

@@ -82,7 +82,11 @@ class TclUTFToLocalStringSentry {
delete[] TclArgv;
}
#else
TclUTFToLocalStringSentry (int, const char **argv) : Argv((char**)argv) {}
TclUTFToLocalStringSentry (int, const char **argv) :
nb(0),
TclArgv(NULL),
Argv((char**)argv)
{}
#endif
const char **GetArgv () const { return (const char **)Argv; }

View File

@@ -142,7 +142,15 @@ Draw_View::Draw_View(Standard_Integer i, Draw_Viewer* v,
Standard_Integer Y,
Standard_Integer W,
Standard_Integer H) :
Draw_Window("Win", X, Y, W, H), id(i), viewer(v)
Draw_Window("Win", X, Y, W, H),
id(i),
viewer(v),
FlagPers(0),
Flag2d(0),
FocalDist(0.),
Zoom(0.),
dX(0),dY(0),
lastX(0),lastY(0)
{
Framex0=Framey0=Framex1=Framey1=0;
}
@@ -169,9 +177,16 @@ Draw_View::Draw_View(Standard_Integer i, Draw_Viewer* v,
Standard_Integer W,
Standard_Integer H,
NSWindow* theWindow) :
Draw_Window(theWindow, "Win", X, Y, W, H), id(i), viewer(v)
Draw_Window(theWindow, "Win", X, Y, W, H), id(i), viewer(v),
FlagPers(0),
Flag2d(0),
FocalDist(0.),
Zoom(0.),
dX(0),dY(0),
lastX(0),lastY(0),
Framex0(0),Framey0(0),
Framex1(0),Framey1(0)
{
Framex0=Framey0=Framex1=Framey1=0;
}
#endif
@@ -180,7 +195,7 @@ Draw_Window(theWindow, "Win", X, Y, W, H), id(i), viewer(v)
//purpose :
//=======================================================================
#if defined(_WIN32) || defined (__WIN32__) || (defined(__APPLE__) && !defined(MACOSX_USE_GLX))
Draw_View::Draw_View(Standard_Integer /*i*/, Draw_Viewer* /*v*/, const char* /*w*/)
Draw_View::Draw_View(Standard_Integer /*i*/, Draw_Viewer* /*v*/, const char* /*w*/) : viewer( NULL )
#else
Draw_View::Draw_View(Standard_Integer i, Draw_Viewer* v, const char* w) :
Draw_Window(w), id(i), viewer(v)