Changeset 11071 for code/trunk/src/libraries/core/module/Plugin.cc
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/module/Plugin.cc
r11015 r11071 39 39 { 40 40 this->referenceCounter_ = 0; 41 this->moduleInstance_ = NULL;41 this->moduleInstance_ = nullptr; 42 42 } 43 43 … … 45 45 { 46 46 // force unloading of the module when the plugin is destroyed 47 if (this->moduleInstance_ != NULL)47 if (this->moduleInstance_ != nullptr) 48 48 this->unloadModule(); 49 49 } … … 79 79 { 80 80 // only load module if it isn't already loaded. otherwise merely activate it. 81 if (this->moduleInstance_ == NULL)81 if (this->moduleInstance_ == nullptr) 82 82 this->loadModule(); 83 83 else … … 112 112 Core::getInstance().unloadModule(this->moduleInstance_); 113 113 delete this->moduleInstance_; 114 this->moduleInstance_ = NULL;114 this->moduleInstance_ = nullptr; 115 115 } 116 116 void Plugin::deactivateModule()
Note: See TracChangeset
for help on using the changeset viewer.