mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 09:00:37 +08:00
Replace NULL by nullptr
Change-Id: I200a40678091b984a01635d8637a487b7ad5cc13
This commit is contained in:
@@ -78,7 +78,7 @@ class FirstOrderFunction;
|
||||
// const double y = parameters[1];
|
||||
//
|
||||
// cost[0] = (1.0 - x) * (1.0 - x) + 100.0 * (y - x * x) * (y - x * x);
|
||||
// if (gradient != NULL) {
|
||||
// if (gradient != nullptr) {
|
||||
// gradient[0] = -2.0 * (1.0 - x) - 200.0 * (y - x * x) * 2.0 * x;
|
||||
// gradient[1] = 200.0 * (y - x * x);
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user