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:
@@ -36,11 +36,9 @@ OCC_3dDoc::~OCC_3dDoc()
|
||||
void OCC_3dDoc::PocessTextInDialog(char* aTitle, TCollection_AsciiString& aMessage)
|
||||
{
|
||||
// aMessage+= "-------------------------------- END ----------------------------------------\n";
|
||||
CString text(aMessage.ToCString());
|
||||
myCResultDialog.SetTitle(CString(aTitle));
|
||||
myCResultDialog.SetText(text);
|
||||
SetTitle(CString(aTitle));
|
||||
|
||||
myCResultDialog.SetTitle(aTitle);
|
||||
myCResultDialog.SetText(aMessage.ToCString());
|
||||
SetTitle(aTitle);
|
||||
}
|
||||
|
||||
void OCC_3dDoc::ClearDialog()
|
||||
@@ -72,5 +70,5 @@ CString OCC_3dDoc::GetDialogText()
|
||||
|
||||
void OCC_3dDoc::SetDialogTitle(TCollection_AsciiString theTitle)
|
||||
{
|
||||
myCResultDialog.SetTitle(CString(theTitle.ToCString()));
|
||||
myCResultDialog.SetTitle(theTitle.ToCString());
|
||||
}
|
||||
|
Reference in New Issue
Block a user