Open
Description
Use smart pointers to automate memory management and document clearly when a function steals ownership.
- Scenes @ system::PushScene
- CollisionObjects @ CollisionManager
Certainly more...
EDIT (by @Kazuo256):
Track of raw pointers-related issues:
- action::SpriteAnimationTable Change raw pointer to shared_ptr for action::SpriteAnimationTable #63
- action::Observer Remove Observer class #64
- audio::Sample and audio::Music Music and Sample: Change raw pointer to shared pointer #67
- MediaManager at action::MediaPlayer::ChangeMediaManager Remove action::MediaPlayer::ChangeMediaManager #71
- action::MediaPlayer Change action::MediaPlayer use to shared_ptr #73
- audio::Manager Change audio::Manager to unique_ptr #74
- desktop::Manager Use unique_ptr to store desktop::Manager #76
- filesystem::Manager Use unique_ptr to store filesystem::Manager #82
- input::Manager Use unique_ptr to store input::Manager #83
- resource::Manager Use unique_ptr to store resource::Manager #84
- time::Manager Use unique_ptr to store time::Manager #85
- graphic::Manager Use unique_ptr to store graphic::Manager #93
- text::Manager Use unique_ptr to store text::Manager #94
- system::IListener Move listener ownership out of event handler #98
Raw pointers that will not be removed:
T*
instructure::IndexableTable
T*
inresource::ResourceContainer