summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.h
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2019-04-10 22:07:06 +0100
committerMichael Lutz <michi@icosahedron.de>2019-04-10 23:22:20 +0200
commit7c8e7c6b6e16d4a26259a676db32d8776b99817e (patch)
tree99f134b7e66367cf11e10bc5061896eab4a3264f /src/newgrf_industries.h
parent3b4f224c0bc50e7248050d4bcbb6d83fd510c1cc (diff)
downloadopenttd-7c8e7c6b6e16d4a26259a676db32d8776b99817e.tar.xz
Codechange: Use null pointer literal instead of the NULL macro
Diffstat (limited to 'src/newgrf_industries.h')
-rw-r--r--src/newgrf_industries.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_industries.h b/src/newgrf_industries.h
index 2fa8f7d36..b0c1e3bdd 100644
--- a/src/newgrf_industries.h
+++ b/src/newgrf_industries.h
@@ -43,7 +43,7 @@ struct IndustriesScopeResolver : public ScopeResolver {
/** Resolver for industries. */
struct IndustriesResolverObject : public ResolverObject {
IndustriesScopeResolver industries_scope; ///< Scope resolver for the industry.
- TownScopeResolver *town_scope; ///< Scope resolver for the associated town (if needed and available, else \c NULL).
+ TownScopeResolver *town_scope; ///< Scope resolver for the associated town (if needed and available, else \c nullptr).
IndustriesResolverObject(TileIndex tile, Industry *indus, IndustryType type, uint32 random_bits = 0,
CallbackID callback = CBID_NO_CALLBACK, uint32 callback_param1 = 0, uint32 callback_param2 = 0);
@@ -57,7 +57,7 @@ struct IndustriesResolverObject : public ResolverObject {
case VSG_SCOPE_SELF: return &industries_scope;
case VSG_SCOPE_PARENT: {
TownScopeResolver *tsr = this->GetTown();
- if (tsr != NULL) return tsr;
+ if (tsr != nullptr) return tsr;
}
FALLTHROUGH;