Changed all catch types to references for polymorphic exceptions.

This commit is contained in:
Markus Lampert
2018-07-30 10:28:54 -07:00
committed by wmayer
parent 1cbd5cc994
commit 0b40519f3f
53 changed files with 98 additions and 98 deletions

View File

@@ -337,7 +337,7 @@ void SketchAnalysis::analyseMissingPointOnPointCoincident(double angleprecision)
}
}
catch(Base::Exception e) {
catch(Base::Exception &e) {
Base::Console().Warning("Point-On-Point Coincidence analysis: unable to obtain derivative. Detection ignored.\n");
continue;
}
@@ -782,7 +782,7 @@ int SketchAnalysis::autoconstraint(double precision, double angleprecision, bool
try {
makeMissingEquality();
}
catch(Base::RuntimeError e)
catch(Base::RuntimeError &e)
{
doc->abortTransaction();
throw;
@@ -805,4 +805,4 @@ int SketchAnalysis::autoconstraint(double precision, double angleprecision, bool
return 0;
}
}