- Timestamp:
- Nov 6, 2015, 10:54:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/input/InputManager.cc
r10765 r10768 72 72 InputHandler InputHandler::EMPTY; 73 73 74 InputManager* InputManager::singletonPtr_s = 0;74 InputManager* InputManager::singletonPtr_s = nullptr; 75 75 76 76 //! Defines the |= operator for easier use. … … 94 94 InputManager::InputManager() 95 95 : internalState_(Bad) 96 , oisInputManager_( 0)96 , oisInputManager_(nullptr) 97 97 , devices_(2) 98 98 , exclusiveMouse_(false) 99 , emptyState_( 0)100 , calibratorCallbackHandler_( 0)99 , emptyState_(nullptr) 100 , calibratorCallbackHandler_(nullptr) 101 101 { 102 102 RegisterObject(InputManager); … … 149 149 // When loading the devices they should not already be loaded 150 150 assert(internalState_ & Bad); 151 assert(devices_[InputDeviceEnumerator::Mouse] == 0);152 assert(devices_[InputDeviceEnumerator::Keyboard] == 0);151 assert(devices_[InputDeviceEnumerator::Mouse] == nullptr); 152 assert(devices_[InputDeviceEnumerator::Keyboard] == nullptr); 153 153 assert(devices_.size() == InputDeviceEnumerator::FirstJoyStick); 154 154 … … 294 294 295 295 // Reset console commands 296 ModifyConsoleCommand(__CC_InputManager_name, __CC_calibrate_name).setObject( 0);297 ModifyConsoleCommand(__CC_InputManager_name, __CC_reload_name).setObject( 0);296 ModifyConsoleCommand(__CC_InputManager_name, __CC_calibrate_name).setObject(nullptr); 297 ModifyConsoleCommand(__CC_InputManager_name, __CC_reload_name).setObject(nullptr); 298 298 299 299 orxout(internal_status, context::input) << "InputManager: Destruction complete." << endl; … … 316 316 const std::string& className = device->getClassName(); 317 317 delete device; 318 device = 0;318 device = nullptr; 319 319 orxout(verbose, context::input) << className << " destroyed." << endl; 320 320 } … … 526 526 { 527 527 if (name.empty()) 528 return 0;528 return nullptr; 529 529 if (statesByName_.find(name) == statesByName_.end()) 530 530 { … … 539 539 orxout(internal_warning, context::input) << "Could not add an InputState with the same priority '" 540 540 << static_cast<int>(priority) << "' != 0." << endl; 541 return 0;541 return nullptr; 542 542 } 543 543 } … … 551 551 { 552 552 orxout(internal_warning, context::input) << "Could not add an InputState with the same name '" << name << "'." << endl; 553 return 0;553 return nullptr; 554 554 } 555 555 } … … 561 561 return it->second; 562 562 else 563 return 0;563 return nullptr; 564 564 } 565 565
Note: See TracChangeset
for help on using the changeset viewer.