mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-19 09:02:53 -04:00
newer standards prefer nullptr over NULL - this is most of them but there are others too
This commit is contained in:
@@ -61,7 +61,7 @@ void PlanetController::handleMessage (const int message, const float value, cons
|
||||
case CM_setWeather:
|
||||
{
|
||||
const MessageQueueGenericValueType<std::pair<int, Vector> >* const message = safe_cast<const MessageQueueGenericValueType<std::pair<int, Vector> >*> (data);
|
||||
if (message != NULL)
|
||||
if (message != nullptr)
|
||||
{
|
||||
owner->setWeather(
|
||||
message->getValue().first,
|
||||
@@ -280,7 +280,7 @@ void PlanetController::handleMessage (const int message, const float value, cons
|
||||
const std::map<std::string, int64> & data = message->getValue();
|
||||
|
||||
for (std::map<std::string, int64>::const_iterator iter = data.begin(); iter != data.end(); ++iter)
|
||||
owner->adjustGcwImperialScore("CM_adjustGcwImperialScore", NULL, iter->first, iter->second);
|
||||
owner->adjustGcwImperialScore("CM_adjustGcwImperialScore", nullptr, iter->first, iter->second);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -293,7 +293,7 @@ void PlanetController::handleMessage (const int message, const float value, cons
|
||||
const std::map<std::string, int64> & data = message->getValue();
|
||||
|
||||
for (std::map<std::string, int64>::const_iterator iter = data.begin(); iter != data.end(); ++iter)
|
||||
owner->adjustGcwRebelScore("CM_adjustGcwRebelScore", NULL, iter->first, iter->second);
|
||||
owner->adjustGcwRebelScore("CM_adjustGcwRebelScore", nullptr, iter->first, iter->second);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user