Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2015, 10:25:42 PM (9 years ago)
Author:
landauf
Message:

replace 'NULL' by 'nullptr'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/module/PluginManager.cc

    r10580 r10765  
    5656    PluginManager::~PluginManager()
    5757    {
    58         ModifyConsoleCommand("PluginManager", __CC_PluginManager_load_name).setObject(NULL);
    59         ModifyConsoleCommand("PluginManager", __CC_PluginManager_unload_name).setObject(NULL);
     58        ModifyConsoleCommand("PluginManager", __CC_PluginManager_load_name).setObject(nullptr);
     59        ModifyConsoleCommand("PluginManager", __CC_PluginManager_unload_name).setObject(nullptr);
    6060
    6161        for (std::map<std::string, PluginReference*>::iterator it = this->references_.begin(); it != this->references_.end(); ++it)
     
    8989    {
    9090        Plugin* plugin = this->plugins_[name];
    91         if (plugin != NULL)
     91        if (plugin != nullptr)
    9292            plugin->load();
    9393        else
     
    9898    {
    9999        Plugin* plugin = this->plugins_[name];
    100         if (plugin != NULL)
     100        if (plugin != nullptr)
    101101            plugin->unload();
    102102        else
     
    109109    void PluginManager::loadPlugin(const std::string& name)
    110110    {
    111         if (this->references_[name] == NULL)
     111        if (this->references_[name] == nullptr)
    112112        {
    113113            this->references_[name] = new PluginReference(name);
     
    124124    {
    125125        PluginReference* reference = this->references_[name];
    126         if (reference != NULL)
     126        if (reference != nullptr)
    127127        {
    128             this->references_[name] = NULL;
     128            this->references_[name] = nullptr;
    129129            delete reference;
    130130        }
Note: See TracChangeset for help on using the changeset viewer.