mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030611: Coding Rules - eliminate GCC compiler warnings -Wcatch-value
Add missing const& to catch statements.
This commit is contained in:
@@ -447,7 +447,7 @@ void StdSelect_BRepSelectionTool::GetEdgeSensitive (const TopoDS_Shape& theShape
|
||||
try {
|
||||
OCC_CATCH_SIGNALS
|
||||
cu3d.Initialize (anEdge);
|
||||
} catch (Standard_NullObject) {
|
||||
} catch (Standard_NullObject const&) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -626,7 +626,7 @@ Standard_Boolean StdSelect_BRepSelectionTool::GetSensitiveForFace (const TopoDS_
|
||||
OCC_CATCH_SIGNALS
|
||||
cu3d.Initialize (aWireExplorer.Current());
|
||||
}
|
||||
catch (Standard_NullObject)
|
||||
catch (Standard_NullObject const&)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user