newer standards prefer nullptr over NULL - this is most of them but there are others too

This commit is contained in:
DarthArgus
2016-02-15 00:07:31 -06:00
parent 6bb5137dc4
commit 03dc62efba
937 changed files with 14983 additions and 14983 deletions
@@ -25,11 +25,11 @@ namespace LocatorNamespace
float getConfigSetting(const char *section, const char *key, const float defaultValue)
{
const ConfigFile::Section * sec = ConfigFile::getSection(section);
if (sec == NULL)
if (sec == nullptr)
return defaultValue;
const ConfigFile::Key * ky = sec->findKey(key);
if (ky == NULL)
if (ky == nullptr)
return defaultValue;
return ky->getAsFloat(ky->getCount()-1, defaultValue);
@@ -364,7 +364,7 @@ void Locator::opened(std::string const &label, ManagerConnection *newConnection)
TaskManager::runSpawnRequestQueue();
}
else
WARNING_STRICT_FATAL(true, ("Passed null connection to Locator::opened"));
WARNING_STRICT_FATAL(true, ("Passed nullptr connection to Locator::opened"));
}
// ----------------------------------------------------------------------