Replace NULL with nullptr in the documentation.

Change-Id: I995f68770e2a4b6027c0a1d3edf5eb5132b081d7
This commit is contained in:
Sameer Agarwal
2020-08-03 04:17:33 -07:00
parent ee280e27a6
commit ab4ed32cda
5 changed files with 34 additions and 34 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ squares problems in Ceres.
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);
}