Salome HOME
BugID: 9377, modified method saveDocumentAs, removed usage of unitialized variable
authorsrn <srn@opencascade.com>
Wed, 6 Jul 2005 11:49:37 +0000 (11:49 +0000)
committersrn <srn@opencascade.com>
Wed, 6 Jul 2005 11:49:37 +0000 (11:49 +0000)
src/SalomeApp/SalomeApp_Study.cxx

index aa812a9748269d2397610c8de246c13cad61bbe6..af63f686c032a4b563f2be7cafa3040a856c4594 100644 (file)
@@ -150,7 +150,7 @@ bool SalomeApp_Study::saveDocumentAs( const QString& theFileName )
    /* bool res = */isAscii ? SalomeApp_Application::studyMgr()->SaveAsASCII( theFileName.latin1(), studyDS(), isMultiFile ) :
                   SalomeApp_Application::studyMgr()->SaveAs     ( theFileName.latin1(), studyDS(), isMultiFile );
 
-  bool res = res && CAM_Study::saveDocumentAs( theFileName );
+  bool res = CAM_Study::saveDocumentAs( theFileName );  //SRN: BugID IPAL9377, removed usage of uninitialized variable <res>
 
   if ( res )
     emit saved( this );