mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Lint cleanup and a bug fix.
Thanks to William Rucklidge. Change-Id: I963656be661020abacbff792cfc3025623503db8
This commit is contained in:
@@ -108,8 +108,8 @@ class DynamicNumericDiffCostFunction : public CostFunction {
|
||||
<< "You must call DynamicNumericDiffCostFunction::AddParameterBlock() "
|
||||
<< "before DynamicNumericDiffCostFunction::Evaluate().";
|
||||
|
||||
bool status = (*functor_)(parameters, residuals);
|
||||
if (jacobians == NULL) {
|
||||
const bool status = (*functor_)(parameters, residuals);
|
||||
if (jacobians == NULL || !status) {
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user