mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Replace NULL by nullptr
Change-Id: I200a40678091b984a01635d8637a487b7ad5cc13
This commit is contained in:
@@ -127,7 +127,7 @@ class TinySolverAutoDiffFunction {
|
||||
// This is similar to AutoDifferentiate(), but since there is only one
|
||||
// parameter block it is easier to inline to avoid overhead.
|
||||
bool operator()(const T* parameters, T* residuals, T* jacobian) const {
|
||||
if (jacobian == NULL) {
|
||||
if (jacobian == nullptr) {
|
||||
// No jacobian requested, so just directly call the cost function with
|
||||
// doubles, skipping jets and derivatives.
|
||||
return cost_functor_(parameters, residuals);
|
||||
|
||||
Reference in New Issue
Block a user