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:
@@ -868,7 +868,7 @@ static Standard_Integer meshcolors( Draw_Interpretor& di,
|
||||
try {
|
||||
OCC_CATCH_SIGNALS
|
||||
aScaleValue = (aCoords.Value(1) - (Standard_Real) aMinX) / aDelta;
|
||||
} catch(Standard_Failure) {
|
||||
} catch(Standard_Failure const&) {
|
||||
aScaleValue = 0;
|
||||
}
|
||||
|
||||
@@ -893,7 +893,7 @@ static Standard_Integer meshcolors( Draw_Interpretor& di,
|
||||
}
|
||||
}
|
||||
}
|
||||
catch ( Standard_Failure )
|
||||
catch ( Standard_Failure const& )
|
||||
{
|
||||
di << "Error\n";
|
||||
}
|
||||
@@ -1212,7 +1212,7 @@ static Standard_Integer mesh_edge_width( Draw_Interpretor& di,
|
||||
aDrawer->SetDouble( MeshVS_DA_EdgeWidth, aWidth );
|
||||
anIC->Redisplay (aMesh, Standard_True);
|
||||
}
|
||||
catch ( Standard_Failure )
|
||||
catch ( Standard_Failure const& )
|
||||
{
|
||||
di << "Error\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user