mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-20 06:09:50 +08:00
0030611: Coding Rules - eliminate GCC compiler warnings -Wcatch-value
Add missing const& to catch statements.
This commit is contained in:
@@ -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