mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0024355: Compiler Warning level 4 for MFC samples
Some warnings were removed from MFC samples All warnings of sample projects with warning level 4 were fixed on VC9 Warnings level increased to -W4 in projects of MFC samples; sample ReadMe files added to documentation Changes in Viewer2dDoc.cpp and OcafDoc.cpp were restored. Minor corrections in documentation
This commit is contained in:
@@ -205,9 +205,9 @@ void CAnimationDoc::DragEvent(const Standard_Integer x ,
|
||||
//-----------------------------------------------------------------------------------------
|
||||
//
|
||||
//-----------------------------------------------------------------------------------------
|
||||
void CAnimationDoc::InputEvent(const Standard_Integer x ,
|
||||
const Standard_Integer y ,
|
||||
const Handle(V3d_View)& aView )
|
||||
void CAnimationDoc::InputEvent(const Standard_Integer /*x*/,
|
||||
const Standard_Integer /*y*/,
|
||||
const Handle(V3d_View)& /*aView*/ )
|
||||
{
|
||||
myAISContext->Select();
|
||||
}
|
||||
@@ -257,19 +257,19 @@ void CAnimationDoc::ShiftDragEvent(const Standard_Integer x ,
|
||||
//-----------------------------------------------------------------------------------------
|
||||
//
|
||||
//-----------------------------------------------------------------------------------------
|
||||
void CAnimationDoc::ShiftInputEvent(const Standard_Integer x ,
|
||||
const Standard_Integer y ,
|
||||
const Handle(V3d_View)& aView )
|
||||
void CAnimationDoc::ShiftInputEvent(const Standard_Integer /*x*/,
|
||||
const Standard_Integer /*y*/,
|
||||
const Handle(V3d_View)& /*aView*/)
|
||||
{
|
||||
myAISContext->ShiftSelect();
|
||||
myAISContext->ShiftSelect();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------------------
|
||||
//
|
||||
//-----------------------------------------------------------------------------------------
|
||||
void CAnimationDoc::Popup(const Standard_Integer x,
|
||||
const Standard_Integer y ,
|
||||
const Handle(V3d_View)& aView )
|
||||
void CAnimationDoc::Popup(const Standard_Integer /*x*/,
|
||||
const Standard_Integer /*y*/ ,
|
||||
const Handle(V3d_View)& /*aView*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -114,7 +114,7 @@ BOOL CAnimationView3D::PreCreateWindow(CREATESTRUCT& cs)
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAnimationView3D drawing
|
||||
|
||||
void CAnimationView3D::OnDraw(CDC* pDC)
|
||||
void CAnimationView3D::OnDraw(CDC* /*pDC*/)
|
||||
{
|
||||
CAnimationDoc* pDoc = GetDocument();
|
||||
ASSERT_VALID(pDoc);
|
||||
@@ -245,7 +245,7 @@ void CAnimationView3D::OnFileExportImage()
|
||||
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
|
||||
}
|
||||
|
||||
void CAnimationView3D::OnSize(UINT nType, int cx, int cy)
|
||||
void CAnimationView3D::OnSize(UINT /*nType*/, int cx, int cy)
|
||||
{
|
||||
m_cx = cx ;
|
||||
m_cy = cy ;
|
||||
@@ -449,7 +449,7 @@ void CAnimationView3D::OnLButtonUp(UINT nFlags, CPoint point)
|
||||
} // else // if ( Ctrl )
|
||||
}
|
||||
|
||||
void CAnimationView3D::OnMButtonDown(UINT nFlags, CPoint point)
|
||||
void CAnimationView3D::OnMButtonDown(UINT nFlags, CPoint /*point*/)
|
||||
{
|
||||
if ( nFlags & MK_CONTROL )
|
||||
{
|
||||
@@ -458,7 +458,7 @@ void CAnimationView3D::OnMButtonDown(UINT nFlags, CPoint point)
|
||||
}
|
||||
}
|
||||
|
||||
void CAnimationView3D::OnMButtonUp(UINT nFlags, CPoint point)
|
||||
void CAnimationView3D::OnMButtonUp(UINT nFlags, CPoint /*point*/)
|
||||
{
|
||||
if ( nFlags & MK_CONTROL )
|
||||
{
|
||||
@@ -484,7 +484,7 @@ void CAnimationView3D::OnRButtonDown(UINT nFlags, CPoint point)
|
||||
}
|
||||
}
|
||||
|
||||
void CAnimationView3D::OnRButtonUp(UINT nFlags, CPoint point)
|
||||
void CAnimationView3D::OnRButtonUp(UINT /*nFlags*/, CPoint /*point*/)
|
||||
{
|
||||
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
|
||||
myView->SetComputedMode (myHlrModeIsOn);
|
||||
@@ -682,7 +682,7 @@ void CAnimationView3D::DrawRectangle(const Standard_Integer MinX ,
|
||||
else if (aLineStyle == Default)
|
||||
{ m_Pen = NULL; m_DrawMode = R2_MERGEPENNOT;}
|
||||
|
||||
CPen* aOldPen;
|
||||
CPen* aOldPen = NULL;
|
||||
CClientDC clientDC(this);
|
||||
if (m_Pen) aOldPen = clientDC.SelectObject(m_Pen);
|
||||
clientDC.SetROP2(m_DrawMode);
|
||||
@@ -792,7 +792,7 @@ void CAnimationView3D::OnSensitivity()
|
||||
}
|
||||
}
|
||||
|
||||
void CAnimationView3D::Fly (int x , int y)
|
||||
void CAnimationView3D::Fly (int /*x*/ , int y)
|
||||
{
|
||||
double v [3] ;
|
||||
double l ;
|
||||
@@ -824,7 +824,7 @@ void CAnimationView3D::Fly (int x , int y)
|
||||
|
||||
/* Rotation */
|
||||
|
||||
void CAnimationView3D::Turn (int x , int y)
|
||||
void CAnimationView3D::Turn (int x , int /*y*/)
|
||||
{
|
||||
gp_Vec z (0.,0.,1.) ;
|
||||
|
||||
@@ -859,7 +859,7 @@ void CAnimationView3D::Turn (int x , int y)
|
||||
m_Atz = m_Eyez + aZ ;
|
||||
}
|
||||
|
||||
void CAnimationView3D::Roll (int x , int y)
|
||||
void CAnimationView3D::Roll (int x , int /*y*/)
|
||||
{
|
||||
gp_Vec z (0.,0.,1.) ;
|
||||
|
||||
@@ -893,7 +893,7 @@ void CAnimationView3D::Roll (int x , int y)
|
||||
m_Atz = m_Eyez + aZ ;
|
||||
}
|
||||
|
||||
void CAnimationView3D::Twist (int x , int y)
|
||||
void CAnimationView3D::Twist (int x , int /*y*/)
|
||||
{
|
||||
double sens ;
|
||||
double a ;
|
||||
|
@@ -32,7 +32,7 @@ Standard_Boolean grid2surf(const CString aCStringShapeName,
|
||||
{
|
||||
char tmp_char[256] ="";
|
||||
strcpy_s(tmp_char,aCStringShapeName);
|
||||
int i = 0, len = strlen(tmp_char);
|
||||
int i = 0, len = (int)strlen(tmp_char);
|
||||
while (i < len)
|
||||
{
|
||||
if (tmp_char[i] == '\\')
|
||||
@@ -70,8 +70,8 @@ Handle(TColStd_HArray2OfReal) ReadRegularGrid(Standard_CString FileName,
|
||||
|
||||
H = new TColStd_HArray2OfReal(C1, C2, R1, R2);
|
||||
|
||||
Standard_Real FirstX;
|
||||
Standard_Real FirstY;
|
||||
Standard_Real FirstX = 0.0;
|
||||
Standard_Real FirstY = 0.0;
|
||||
|
||||
for(R = R1; R <= R2; R++)
|
||||
{
|
||||
@@ -125,7 +125,7 @@ Handle(TColStd_HArray2OfReal) ReadRegularGrid(const CString aCStringFileName,
|
||||
{
|
||||
char tmp_char[256] ="";
|
||||
strcpy_s(tmp_char,aCStringFileName);
|
||||
int i = 0, len = strlen(tmp_char);
|
||||
int i = 0, len = (int)strlen(tmp_char);
|
||||
while (i < len)
|
||||
{
|
||||
if (tmp_char[i] == '\\')
|
||||
|
Reference in New Issue
Block a user