fix bugprone-*
* bugprone-throw-keyword-missing * bugprone-unhandled-self-assignment * bugprone-suspicious-string-compare * bugprone-reserved-identifier * bugprone-narrowing-conversions * bugprone-macro-parentheses * bugprone-implicit-widening-of-multiplication-result * bugprone-exception-escape * bugprone-copy-constructor-init
This commit is contained in:
@@ -251,11 +251,15 @@ ParameterGrpPy::ParameterGrpPy(const Base::Reference<ParameterGrp>& rcParamGrp)
|
||||
|
||||
ParameterGrpPy::~ParameterGrpPy()
|
||||
{
|
||||
for (ParameterGrpObserver* obs : _observers) {
|
||||
if (!obs->_target) {
|
||||
_cParamGrp->Detach(obs);
|
||||
try {
|
||||
for (ParameterGrpObserver* obs : _observers) {
|
||||
if (!obs->_target) {
|
||||
_cParamGrp->Detach(obs);
|
||||
}
|
||||
delete obs;
|
||||
}
|
||||
delete obs;
|
||||
}
|
||||
catch (...) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user