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:
@@ -162,7 +162,7 @@ PCDM_ReaderStatus CDF_Application::CanRetrieve(const TCollection_ExtendedString&
|
||||
if (aReader.IsNull())
|
||||
return PCDM_RS_NoDriver;
|
||||
}
|
||||
catch (Standard_Failure)
|
||||
catch (Standard_Failure const&)
|
||||
{
|
||||
// no need to report error, this was just check for availability
|
||||
}
|
||||
|
@@ -121,7 +121,7 @@ PCDM_StoreStatus CDF_StoreList::Store (Handle(CDM_MetaData)& aMetaData, TCollect
|
||||
}
|
||||
}
|
||||
|
||||
catch (CDF_MetaDataDriverError anException) {
|
||||
catch (CDF_MetaDataDriverError const& anException) {
|
||||
CAUGHT(anException, aStatusAssociatedText, TCollection_ExtendedString("metadatadriver failed; reason:"));
|
||||
status = PCDM_SS_DriverFailure;
|
||||
}
|
||||
|
Reference in New Issue
Block a user