URL:
  <http://gna.org/patch/?3914>

                 Summary: Using scoped_ptr in unit class (refactor)
                 Project: Battle for Wesnoth
            Submitted by: vinipsmaker
            Submitted on: Fri May 17 15:57:34 2013
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I've sent the patch to https://github.com/wesnoth/wesnoth-old/pull/5 .

Quoting message from the previous link:
"This change aims to simplify the code, making the intents more explicit.
There wasn't a memory leak in the previous version, but it could easily be
introduced in the future.

Also, RAII is part of the coding standards of Wesnoth, as noted in the wiki.

There are other raw pointers in the unit class, but unit don't own them, then
I leave them unchanged."




    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?3914>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to