From 7c8e7c6b6e16d4a26259a676db32d8776b99817e Mon Sep 17 00:00:00 2001 From: Henry Wilson Date: Wed, 10 Apr 2019 22:07:06 +0100 Subject: Codechange: Use null pointer literal instead of the NULL macro --- src/roadveh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/roadveh.h') diff --git a/src/roadveh.h b/src/roadveh.h index c2a799951..22f827b1d 100644 --- a/src/roadveh.h +++ b/src/roadveh.h @@ -133,7 +133,7 @@ struct RoadVehicle FINAL : public GroundVehicle { int GetDisplaySpeed() const { return this->gcache.last_speed / 2; } int GetDisplayMaxSpeed() const { return this->vcache.cached_max_speed / 2; } Money GetRunningCost() const; - int GetDisplayImageWidth(Point *offset = NULL) const; + int GetDisplayImageWidth(Point *offset = nullptr) const; bool IsInDepot() const { return this->state == RVSB_IN_DEPOT; } bool Tick(); void OnNewDay(); -- cgit v1.2.3-54-g00ecf