1
0
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:
kgv
2019-03-31 23:38:14 +03:00
parent f996b507d8
commit a738b534ca
106 changed files with 210 additions and 213 deletions

View File

@@ -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

View File

@@ -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.