Warning on windows in QABugs_11.cxx was eliminated
authorapn <apn@opencascade.com>
Thu, 2 Feb 2017 16:01:54 +0000 (19:01 +0300)
committerapn <apn@opencascade.com>
Thu, 2 Feb 2017 16:01:54 +0000 (19:01 +0300)
src/QABugs/QABugs_11.cxx

index 5896d3b..8895b28 100644 (file)
@@ -2620,10 +2620,10 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
     catch(OSD_Exception_STACK_OVERFLOW) {
       di << "Caught, OK\n";
     }
-    catch(Standard_Failure) {
+    catch(Standard_Failure const& anException) {
       //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
       di << " Caught (";
-      di << Standard_Failure::Caught()->GetMessageString();
+      di << anException.GetMessageString();
       di << ")... KO\n";
       Succes = Standard_False;
     }