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
+2 -2
View File
@@ -1234,7 +1234,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
found = Standard_True;
}
}
catch(Standard_Failure) {
catch(Standard_Failure const&) {
TP->AddFail(start,"Exeption is raised. Entity was not translated.");
TP->Bind(start, shbinder);
return shbinder;
@@ -1395,7 +1395,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
TP->Bind(fs, sb);
return sb; // TP->Find (start);
}
catch(Standard_Failure)
catch(Standard_Failure const&)
{
TP->AddFail(fs,"Exeption is raised. Entity was not translated.");
sb.Nullify();