mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -42,7 +42,7 @@ void CResultDialog::Empty()
|
||||
pEd->SetWindowText("");
|
||||
}
|
||||
|
||||
void CResultDialog::SetText(CString & aText)
|
||||
void CResultDialog::SetText(const CString & aText)
|
||||
{
|
||||
pEd = (CRichEditCtrl *) GetDlgItem (IDC_RICHEDIT_ResultDialog);
|
||||
pEd->SetWindowText(aText);
|
||||
@@ -65,7 +65,7 @@ BOOL CResultDialog::OnInitDialog()
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
||||
void CResultDialog::SetTitle(CString & aTitle)
|
||||
void CResultDialog::SetTitle(const CString & aTitle)
|
||||
{
|
||||
SetWindowText(aTitle);
|
||||
}
|
||||
|
Reference in New Issue
Block a user