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:
ibs
2013-11-21 13:44:27 +04:00
committed by bugmaster
parent 95eef64da2
commit 5c573e69d3
102 changed files with 2896 additions and 2893 deletions

View File

@@ -39,7 +39,7 @@ CGeometryView2D::~CGeometryView2D()
// CNSGView drawing
void CGeometryView2D::OnDraw(CDC* pDC)
void CGeometryView2D::OnDraw(CDC* /*pDC*/)
{
CGeometryDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
@@ -170,7 +170,7 @@ void CGeometryView2D::OnLButtonUp(UINT nFlags, CPoint point)
}
void CGeometryView2D::OnMButtonDown(UINT nFlags, CPoint point)
void CGeometryView2D::OnMButtonDown(UINT nFlags, CPoint /*point*/)
{
if ( nFlags & MK_CONTROL )
{
@@ -179,7 +179,7 @@ void CGeometryView2D::OnMButtonDown(UINT nFlags, CPoint point)
}
}
void CGeometryView2D::OnMButtonUp(UINT nFlags, CPoint point)
void CGeometryView2D::OnMButtonUp(UINT nFlags, CPoint /*point*/)
{
if ( nFlags & MK_CONTROL )
{
@@ -201,7 +201,7 @@ void CGeometryView2D::OnRButtonDown(UINT nFlags, CPoint point)
}
}
void CGeometryView2D::OnRButtonUp(UINT nFlags, CPoint point)
void CGeometryView2D::OnRButtonUp(UINT /*nFlags*/, CPoint point)
{
OCC_2dView::Popup2D(point.x,point.y);
}
@@ -277,7 +277,7 @@ void CGeometryView2D::OnMouseMove(UINT nFlags, CPoint point)
}
}
void CGeometryView2D::OnSize(UINT nType, int cx, int cy)
void CGeometryView2D::OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/)
{
if (!myV2dView.IsNull())
{