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:
@@ -262,7 +262,7 @@ Standard_Boolean Resource_Manager::Save() const
|
||||
OCC_CATCH_SIGNALS
|
||||
Dir.Build(OSD_Protection(OSD_RX, OSD_RWXD, OSD_RX, OSD_RX));
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
catch (Standard_Failure const&) {
|
||||
aStatus = Standard_False;
|
||||
}
|
||||
}
|
||||
@@ -291,7 +291,7 @@ Standard_Boolean Resource_Manager::Save() const
|
||||
OCC_CATCH_SIGNALS
|
||||
File.Build(OSD_ReadWrite, theProt);
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
catch (Standard_Failure const&) {
|
||||
aStatus = Standard_False;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user