mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0024588: Fix some ICC warning fixes
Some of ICC warning fixes reported in 0024574 are fixed Remove redundant ifdef
This commit is contained in:
parent
124021462e
commit
f1a5afa25c
@ -779,10 +779,6 @@ void Draw::Set(const Standard_CString name,
|
|||||||
const Handle(Draw_Drawable3D)& D,
|
const Handle(Draw_Drawable3D)& D,
|
||||||
const Standard_Boolean displ)
|
const Standard_Boolean displ)
|
||||||
{
|
{
|
||||||
Standard_PCharacter pName;
|
|
||||||
//
|
|
||||||
pName=(Standard_PCharacter)name;
|
|
||||||
//
|
|
||||||
if ((name[0] == '.') && (name[1] == '\0')) {
|
if ((name[0] == '.') && (name[1] == '\0')) {
|
||||||
if (!D.IsNull()) {
|
if (!D.IsNull()) {
|
||||||
dout.RemoveDrawable(D);
|
dout.RemoveDrawable(D);
|
||||||
@ -791,19 +787,19 @@ void Draw::Set(const Standard_CString name,
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
Tcl_UnsetVar(theCommands.Interp(),pName,0);
|
Tcl_UnsetVar(theCommands.Interp(),name,0);
|
||||||
if (!D.IsNull()) {
|
if (!D.IsNull()) {
|
||||||
Standard_Integer ival = theVariables.Extent() + 1;
|
Standard_Integer ival = theVariables.Extent() + 1;
|
||||||
theVariables.Bind(ival,D);
|
theVariables.Bind(ival,D);
|
||||||
// MKV 29.03.05
|
// MKV 29.03.05
|
||||||
#if ((TCL_MAJOR_VERSION > 8) || ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 4))) && !defined(USE_NON_CONST)
|
#if ((TCL_MAJOR_VERSION > 8) || ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 4))) && !defined(USE_NON_CONST)
|
||||||
D->Name((const Standard_CString)Tcl_SetVar(theCommands.Interp(),name,name,0));
|
D->Name(Tcl_SetVar(theCommands.Interp(),name,name,0));
|
||||||
#else
|
#else
|
||||||
D->Name(Tcl_SetVar(theCommands.Interp(),pName,pName,0));
|
D->Name(Tcl_SetVar(theCommands.Interp(),(char*)name,(char*)name,0));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// set the trace function
|
// set the trace function
|
||||||
Tcl_TraceVar(theCommands.Interp(),pName,TCL_TRACE_UNSETS,
|
Tcl_TraceVar(theCommands.Interp(),name,TCL_TRACE_UNSETS,
|
||||||
tracevar,(ClientData)ival);
|
tracevar,(ClientData)ival);
|
||||||
|
|
||||||
if (displ) {
|
if (displ) {
|
||||||
|
@ -1053,23 +1053,6 @@ void Draw_Viewer::Repaint3D () const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
|
||||||
//function : GetWindow
|
|
||||||
//purpose :
|
|
||||||
//=======================================================================
|
|
||||||
unsigned long Draw_Viewer::GetWindow (const Standard_Integer id) const
|
|
||||||
{
|
|
||||||
if (Draw_Batch) return 0;
|
|
||||||
if (myViews[id]) {
|
|
||||||
#if defined(_WIN32) || defined(__WIN32__)
|
|
||||||
return (unsigned long)(myViews[id]->win);
|
|
||||||
#elif !defined(__APPLE__) || defined(MACOSX_USE_GLX)
|
|
||||||
return myViews[id]->win;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : DeleteView
|
//function : DeleteView
|
||||||
//purpose :
|
//purpose :
|
||||||
|
@ -130,7 +130,6 @@ class Draw_Viewer {
|
|||||||
__Draw_API void RepaintAll () const;
|
__Draw_API void RepaintAll () const;
|
||||||
__Draw_API void Repaint2D () const;
|
__Draw_API void Repaint2D () const;
|
||||||
__Draw_API void Repaint3D () const;
|
__Draw_API void Repaint3D () const;
|
||||||
__Draw_API unsigned long GetWindow (const Standard_Integer id) const;
|
|
||||||
__Draw_API void DeleteView (const Standard_Integer id);
|
__Draw_API void DeleteView (const Standard_Integer id);
|
||||||
__Draw_API void Clear ();
|
__Draw_API void Clear ();
|
||||||
__Draw_API void Clear2D ();
|
__Draw_API void Clear2D ();
|
||||||
|
@ -162,7 +162,7 @@ void IntPatch_Point::Dump() const {
|
|||||||
if(onS2)
|
if(onS2)
|
||||||
printf("*OnS2* par=%15.10f arc2=%10p", (double)prm2, (void*)arcS2.operator->());
|
printf("*OnS2* par=%15.10f arc2=%10p", (double)prm2, (void*)arcS2.operator->());
|
||||||
if(vtxonS2)
|
if(vtxonS2)
|
||||||
printf(" *Vtx2* vtx2=%10lu", (void*)vS2.operator->());
|
printf(" *Vtx2* vtx2=%10p", (void*)vS2.operator->());
|
||||||
|
|
||||||
if(onS2 || vtxonS2)
|
if(onS2 || vtxonS2)
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
@ -67,15 +67,6 @@ static BOOL WINAPI _osd_ctrl_break_handler ( DWORD );
|
|||||||
|
|
||||||
static LONG _osd_debug ( void );
|
static LONG _osd_debug ( void );
|
||||||
|
|
||||||
MB_DESC fatalErrorDesc[] = {
|
|
||||||
|
|
||||||
{ MBT_ICON, ( int )IDI_HAND },
|
|
||||||
{ MBT_BUTTON, IDYES, TEXT( "Continue" ) },
|
|
||||||
{ MBT_BUTTON, IDNO, TEXT( "Debugger" ) },
|
|
||||||
{ MBT_BUTTON, IDCANCEL, TEXT( "Stop" ) }
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
//# define _OSD_FPX ( _EM_INVALID | _EM_DENORMAL | _EM_ZERODIVIDE | _EM_OVERFLOW | _EM_UNDERFLOW )
|
//# define _OSD_FPX ( _EM_INVALID | _EM_DENORMAL | _EM_ZERODIVIDE | _EM_OVERFLOW | _EM_UNDERFLOW )
|
||||||
# define _OSD_FPX ( _EM_INVALID | _EM_DENORMAL | _EM_ZERODIVIDE | _EM_OVERFLOW )
|
# define _OSD_FPX ( _EM_INVALID | _EM_DENORMAL | _EM_ZERODIVIDE | _EM_OVERFLOW )
|
||||||
|
|
||||||
|
@ -390,7 +390,7 @@ void Units_Token::Dump(const Standard_Integer ashift,
|
|||||||
TCollection_AsciiString mean = Mean();
|
TCollection_AsciiString mean = Mean();
|
||||||
|
|
||||||
for(i=0; i<ashift; i++)cout<<" ";
|
for(i=0; i<ashift; i++)cout<<" ";
|
||||||
cout << "Units_Token::Dump of " << hex << (long ) this << dec << endl;
|
cout << "Units_Token::Dump of " << this << endl;
|
||||||
for(i=0; i<ashift; i++)cout<<" ";
|
for(i=0; i<ashift; i++)cout<<" ";
|
||||||
cout<<word.ToCString()<<endl;
|
cout<<word.ToCString()<<endl;
|
||||||
for(i=0; i<ashift; i++)cout<<" ";
|
for(i=0; i<ashift; i++)cout<<" ";
|
||||||
|
@ -1600,11 +1600,6 @@ void V3d_View::WindowFit(const Standard_Integer Xmin, const Standard_Integer Ymi
|
|||||||
gp_Pnt aPanFrom = myCamera->ConvertProj2View (aScreenCenter);
|
gp_Pnt aPanFrom = myCamera->ConvertProj2View (aScreenCenter);
|
||||||
gp_Vec aPanVec (aPanFrom, aPanTo);
|
gp_Vec aPanVec (aPanFrom, aPanTo);
|
||||||
|
|
||||||
gp_Pnt a1 (aUMin, aVMin, 0.0);
|
|
||||||
gp_Pnt a2 (aUMax, aVMax, 0.0);
|
|
||||||
gp_Pnt ap1 = myCamera->ConvertProj2View (a1);
|
|
||||||
gp_Pnt ap2 = myCamera->ConvertProj2View (a2);
|
|
||||||
|
|
||||||
// compute section size
|
// compute section size
|
||||||
gp_Pnt aFitTopRight (aUMax, aVMax, aDepth);
|
gp_Pnt aFitTopRight (aUMax, aVMax, aDepth);
|
||||||
gp_Pnt aFitBotLeft (aUMin, aVMin, aDepth);
|
gp_Pnt aFitBotLeft (aUMin, aVMin, aDepth);
|
||||||
|
@ -157,13 +157,7 @@ void WNT_Window :: Destroy ()
|
|||||||
//**************************** SetCursor *********************************//
|
//**************************** SetCursor *********************************//
|
||||||
//***//
|
//***//
|
||||||
void WNT_Window :: SetCursor ( const Aspect_Handle aCursor ) const {
|
void WNT_Window :: SetCursor ( const Aspect_Handle aCursor ) const {
|
||||||
|
SetClassLongPtr ((HWND)myHWindow, GCLP_HCURSOR, (LONG_PTR)aCursor);
|
||||||
#ifndef _WIN64
|
|
||||||
SetClassLong ( ( HWND )myHWindow, GCL_HCURSOR, ( LONG )aCursor );
|
|
||||||
#else
|
|
||||||
SetClassLong ( ( HWND )myHWindow, GCLP_HCURSOR, ( LONG )aCursor );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} // end WNT_Window :: SetCursor
|
} // end WNT_Window :: SetCursor
|
||||||
|
|
||||||
//***//
|
//***//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user