[Commits] [wesnoth/wesnoth] 865be6: Game Events: throw out custom handler_list impleme...

GitHub noreply at github.com
Sun May 21 01:18:24 UTC 2017


  Branch: refs/heads/event_handler_list_refactor
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 865be6d6b267852a13446439e517c1fb34ccb0f7
      https://github.com/wesnoth/wesnoth/commit/865be6d6b267852a13446439e517c1fb34ccb0f7
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-05-21 (Sun, 21 May 2017)

  Changed paths:
    M src/game_events/handlers.cpp
    M src/game_events/handlers.hpp
    M src/game_events/manager.cpp
    M src/game_events/manager.hpp
    M src/game_events/manager_impl.cpp
    M src/game_events/manager_impl.hpp

  Log Message:
  -----------
  Game Events: throw out custom handler_list implementation

This replaces it with the standard std::list interface. I've attempted to make this change as least invasive
as possible, so I have not touched the manager::iteration class. It can probably be refactored further later,
but the crux of this change is simply to allow the removal of the custom smart_list container while keeping
the chance of breakage to a minimum.

The new implementation cannot be an std::forward_list since that only has front-insertion capabilities
while back-insertion is needed.





More information about the Commits mailing list