mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0030611: Coding Rules - eliminate GCC compiler warnings -Wcatch-value
Add missing const& to catch statements.
This commit is contained in:
@@ -59,7 +59,7 @@ IMPLEMENT_DOMSTRING (Value, "value")
|
||||
#ifdef _WIN32
|
||||
#define EXCEPTION ...
|
||||
#else
|
||||
#define EXCEPTION Standard_Failure
|
||||
#define EXCEPTION Standard_Failure const&
|
||||
#endif
|
||||
//=======================================================================
|
||||
//function : XmlMDataStd_NamedDataDriver
|
||||
|
@@ -184,7 +184,7 @@ void XmlMDataStd_RealArrayDriver::Paste (const Handle(TDF_Attribute)& theSource,
|
||||
OCC_CATCH_SIGNALS
|
||||
str.Allocate(25 * realArray.Length() + 1);
|
||||
}
|
||||
catch (Standard_OutOfMemory)
|
||||
catch (Standard_OutOfMemory const&)
|
||||
{
|
||||
// If allocation of big space for the string of double array values failed,
|
||||
// try to calculate the necessary space more accurate and allocate it.
|
||||
|
Reference in New Issue
Block a user