Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 13, 2016, 11:13:30 PM (9 years ago)
Author:
landauf
Message:

added c++11 features to code that was modified in presentationHS15

Location:
code/branches/cpp11_v3/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v3/src/libraries/core/GUIManager.cc

    r11054 r11062  
    267267            ArgumentCompletionList names;
    268268            const std::vector<std::string> guis = GUIManager::getInstance().getLoadedGUIs();
    269             for (size_t i = 0; i < guis.size(); ++i)
    270                 names.push_back(ArgumentCompletionListElement(guis[i], getLowercase(guis[i])));
     269            for (const std::string gui : guis)
     270                names.push_back(ArgumentCompletionListElement(gui, getLowercase(gui)));
    271271            return names;
    272272        }
  • code/branches/cpp11_v3/src/libraries/core/module/Plugin.cc

    r11054 r11062  
    7979    {
    8080        // only load module if it isn't already loaded. otherwise merely activate it.
    81         if (this->moduleInstance_ == NULL)
     81        if (this->moduleInstance_ == nullptr)
    8282            this->loadModule();
    8383        else
     
    112112        Core::getInstance().unloadModule(this->moduleInstance_);
    113113        delete this->moduleInstance_;
    114         this->moduleInstance_ = NULL;
     114        this->moduleInstance_ = nullptr;
    115115    }
    116116    void Plugin::deactivateModule()
Note: See TracChangeset for help on using the changeset viewer.