aList.Append(MyStubObject(Standard::Allocate(aLargeBlockSize)));
}
}
- catch (Standard_Failure)
+ catch (Standard_Failure const&)
{
di << "caught out of memory for large blocks: OK\n";
}
aList.Append(MyStubObject(Standard::Allocate(aSmallBlockSize)));
}
}
- catch (Standard_Failure)
+ catch (Standard_Failure const&)
{
di << "caught out of memory for small blocks: OK\n";
}
#ifdef _WIN32
#define EXCEPTION ...
#else
-#define EXCEPTION Standard_Failure
+#define EXCEPTION Standard_Failure const&
#endif
static ShapeExtend_Status getStatusGap(const Handle(ShapeFix_Wire)& theFix,
{
DBRep::Set(a[1], gtrf.ModifiedShape(aSrcShape));
}
- catch(Standard_Failure)
+ catch(Standard_Failure const&)
{
di << "Error: Exception is thrown\n";
}