[Commits] [wesnoth/wesnoth] 3f3e09: Refactored use of util::scoped_resource out of sur...

GitHub noreply at github.com
Tue Sep 13 06:31:11 UTC 2016


  Branch: refs/heads/surface_cleanup
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 3f3e098e3c35ee6bb692ee7558db6eb8f93ea114
      https://github.com/wesnoth/wesnoth/commit/3f3e098e3c35ee6bb692ee7558db6eb8f93ea114
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
    M src/sdl/utils.hpp

  Log Message:
  -----------
  Refactored use of util::scoped_resource out of surface struct (now class)

util::scoped_resource is likely going to be removed soon and replaced with std::unique_ptr. However,
due to the custom refcounting done on the SDL_Surfaces, here, we cannot use unique_ptr or shared_ptr.
Therefor, we simply add the functionality manually.





More information about the Commits mailing list