0023776: Redesign of MFC samples after V2d viewer removing
[occt.git] / samples / mfc / standard / 10_Convert / src / WNT / OCCDemo.cpp
index a631328..6fbb30d 100755 (executable)
@@ -26,19 +26,17 @@ END_MESSAGE_MAP()
 /////////////////////////////////////////////////////////////////////////////
 // COCCDemoApp construction
 
-COCCDemoApp::COCCDemoApp()
+COCCDemoApp::COCCDemoApp() : OCC_App()
 {
-       // TODO: add construction code here,
-       // Place all significant initialization in InitInstance
-       SampleName = "";
+  SampleName = "";
   try
   {
     Handle(Aspect_DisplayConnection) aDisplayConnection;
     myGraphicDriver = Graphic3d::InitGraphicDriver (aDisplayConnection);
   }
-       catch(Standard_Failure)
-       {
-    AfxMessageBox("Fatal Error During Graphic Initialisation");
+  catch (Standard_Failure)
+  {
+    AfxMessageBox ("Fatal Error During Graphic Initialisation");
   }
 }