[wesnoth-commits] [wesnoth/wesnoth] 1b8bfa: AI: simplify some typedefs with template aliases

GitHub noreply at github.com
Sat Apr 28 19:10:37 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 1b8bfa6ab4859db68865597ba21573e67107e3d0
      https://github.com/wesnoth/wesnoth/commit/1b8bfa6ab4859db68865597ba21573e67107e3d0
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2018-04-29 (Sun, 29 Apr 2018)

  Changed paths:
    M src/ai/composite/aspect.hpp
    M src/ai/contexts.cpp
    M src/ai/contexts.hpp
    M src/ai/game_info.hpp

  Log Message:
  -----------
  AI: simplify some typedefs with template aliases


  Commit: 1e846aced28b5b1d1b0ae9890d326ed3a875b96d
      https://github.com/wesnoth/wesnoth/commit/1e846aced28b5b1d1b0ae9890d326ed3a875b96d
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2018-04-29 (Sun, 29 Apr 2018)

  Changed paths:
    M src/ai/composite/aspect.hpp
    M src/ai/contexts.cpp
    M src/ai/contexts.hpp

  Log Message:
  -----------
  AI: deployed typesafe_aspect_ptr consistently

No reason this couldn't have used aspect_type<t>typesafe_ptr before, so this just
makes uses of this specific type easier to find.


  Commit: ba150c02981fd07bdbc9c3ebf305600754d89aba
      https://github.com/wesnoth/wesnoth/commit/ba150c02981fd07bdbc9c3ebf305600754d89aba
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2018-04-29 (Sun, 29 Apr 2018)

  Changed paths:
    M src/ai/composite/aspect.hpp
    M src/ai/composite/engine.hpp
    M src/ai/composite/property_handler.hpp
    M src/ai/composite/rca.hpp
    M src/ai/formula/engine_fai.cpp
    M src/ai/formula/function_table.cpp

  Log Message:
  -----------
  AI: deployed std::make_shared in a whole bunch of places

Also simplified a few instance of shared_ptr assignment. No need to create a temp ptr
just to immediately assign them.


Compare: https://github.com/wesnoth/wesnoth/compare/78e8ac51d7ef...ba150c02981f


More information about the Commits mailing list