[Commits] [wesnoth/wesnoth] 05092b: Refactor most boost pointer related stuff to use t...

GitHub noreply at github.com
Sun Jul 24 22:31:41 UTC 2016


  Branch: refs/heads/boost_trimming
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 05092ba2f6952ca9e06b1bf4420353894302f4ac
      https://github.com/wesnoth/wesnoth/commit/05092ba2f6952ca9e06b1bf4420353894302f4ac
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-07-25 (Mon, 25 Jul 2016)

  Changed paths:
    M src/about.cpp
    M src/actions/create.cpp
    M src/actions/shroud_clearing_action.hpp
    M src/actions/undo.cpp
    M src/actions/undo.hpp
    M src/actions/undo_action.cpp
    M src/actions/undo_action.hpp
    M src/actions/unit_creator.cpp
    M src/addon/manager_ui.cpp
    M src/addon/validation.cpp
    M src/ai/actions.cpp
    M src/ai/actions.hpp
    M src/ai/composite/aspect.hpp
    M src/ai/composite/component.hpp
    M src/ai/composite/engine.hpp
    M src/ai/composite/goal.cpp
    M src/ai/composite/goal.hpp
    M src/ai/composite/property_handler.hpp
    M src/ai/composite/rca.hpp
    M src/ai/composite/stage.hpp
    M src/ai/contexts.cpp
    M src/ai/contexts.hpp
    M src/ai/default/aspect_attacks.cpp
    M src/ai/default/aspect_attacks.hpp
    M src/ai/default/recruitment.cpp
    M src/ai/default/recruitment.hpp
    M src/ai/formula/ai.cpp
    M src/ai/formula/candidates.hpp
    M src/ai/formula/engine_fai.hpp
    M src/ai/game_info.hpp
    M src/ai/lua/core.cpp
    M src/ai/lua/core.hpp
    M src/ai/lua/engine_lua.cpp
    M src/ai/lua/engine_lua.hpp
    M src/ai/lua/lua_object.cpp
    M src/ai/lua/lua_object.hpp
    M src/ai/manager.cpp
    M src/ai/manager.hpp
    M src/ai/registry.cpp
    M src/campaign_server/campaign_server.hpp
    M src/config_cache.hpp
    M src/dialogs.cpp
    M src/dialogs.hpp
    M src/display.cpp
    M src/display.hpp
    M src/editor/action/action_unit.cpp
    M src/editor/controller/editor_controller.cpp
    M src/editor/controller/editor_controller.hpp
    M src/editor/editor_display.cpp
    M src/editor/map/context_manager.cpp
    M src/editor/map/editor_map.cpp
    M src/editor/map/map_context.cpp
    M src/editor/map/map_context.hpp
    M src/editor/palette/palette_manager.hpp
    M src/editor/toolkit/editor_toolkit.hpp
    M src/formula/callable.hpp
    M src/formula/debugger_fwd.hpp
    M src/formula/formula.cpp
    M src/formula/formula.hpp
    M src/formula/formula_fwd.hpp
    M src/formula/function.cpp
    M src/formula/function.hpp
    M src/formula/variant.hpp
    M src/game_board.hpp
    M src/game_config_manager.cpp
    M src/game_display.cpp
    M src/game_display.hpp
    M src/game_events/action_wml.cpp
    M src/game_events/handlers.hpp
    M src/game_events/manager.hpp
    M src/game_events/manager_impl.hpp
    M src/game_events/pump.hpp
    M src/game_events/wmi_container.cpp
    M src/game_events/wmi_container.hpp
    M src/game_initialization/connect_engine.hpp
    M src/game_initialization/create_engine.cpp
    M src/game_initialization/create_engine.hpp
    M src/game_initialization/multiplayer_configure.hpp
    M src/game_initialization/multiplayer_lobby.cpp
    M src/game_initialization/multiplayer_ui.hpp
    M src/game_initialization/playcampaign.hpp
    M src/game_launcher.hpp
    M src/game_state.cpp
    M src/game_state.hpp
    M src/gui/dialogs/chat_log.cpp
    M src/gui/dialogs/chat_log.hpp
    M src/gui/dialogs/gamestate_inspector.cpp
    M src/gui/dialogs/gamestate_inspector.hpp
    M src/gui/dialogs/loadscreen.hpp
    M src/gui/dialogs/lobby/data.cpp
    M src/gui/dialogs/lobby/lobby.hpp
    M src/gui/dialogs/lua_interpreter.cpp
    M src/gui/dialogs/lua_interpreter.hpp
    M src/gui/dialogs/multiplayer/mp_change_control.cpp
    M src/gui/dialogs/multiplayer/mp_change_control.hpp
    M src/gui/dialogs/unit_recruit.cpp
    M src/gui/dialogs/wml_message.cpp
    M src/gui/widgets/minimap.cpp
    M src/halo.cpp
    M src/halo.hpp
    M src/help/help_impl.cpp
    M src/help/help_impl.hpp
    M src/help/help_topic_generators.cpp
    M src/hotkey/hotkey_handler.hpp
    M src/hotkey/hotkey_handler_sp.cpp
    M src/hotkey/hotkey_handler_sp.hpp
    M src/hotkey/hotkey_item.cpp
    M src/hotkey/hotkey_item.hpp
    M src/language.cpp
    M src/log_windows.cpp
    M src/map/map.hpp
    M src/menu_events.cpp
    M src/mouse_events.cpp
    M src/movetype.cpp
    M src/movetype.hpp
    M src/network.cpp
    M src/network.hpp
    M src/play_controller.cpp
    M src/play_controller.hpp
    M src/playmp_controller.cpp
    M src/playsingle_controller.cpp
    M src/playsingle_controller.hpp
    M src/playturn.cpp
    M src/replay_controller.cpp
    M src/replay_controller.hpp
    M src/reports.cpp
    M src/reports.hpp
    M src/resources.cpp
    M src/resources.hpp
    M src/scripting/application_lua_kernel.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_fileops.cpp
    M src/scripting/lua_formula_bridge.cpp
    M src/scripting/lua_formula_bridge.hpp
    M src/scripting/lua_kernel_base.cpp
    M src/scripting/plugins/manager.cpp
    M src/scripting/plugins/manager.hpp
    M src/sdl/shader.hpp
    M src/server/ban.hpp
    M src/server/player_connection.cpp
    M src/server/player_connection.hpp
    M src/server/server.cpp
    M src/server/server.hpp
    M src/side_filter.hpp
    M src/storyscreen/controller.hpp
    M src/synced_context.cpp
    M src/synced_context.hpp
    M src/team.hpp
    M src/teambuilder.hpp
    M src/terrain/filter.hpp
    M src/terrain/type_data.hpp
    M src/tests/gui/test_gui2.cpp
    M src/tests/gui/visitor.cpp
    M src/tests/test_mp_connect.cpp
    M src/tests/test_rng.cpp
    M src/tests/test_whiteboard_side_actions.cpp
    M src/tests/utils/fake_display.cpp
    M src/tests/utils/fake_event_source.hpp
    M src/tests/utils/play_scenario.cpp
    M src/tests/utils/play_scenario.hpp
    M src/thread.hpp
    M src/tstring.hpp
    M src/units/animation_component.hpp
    M src/units/filter.cpp
    M src/units/filter.hpp
    M src/units/id.hpp
    M src/units/udisplay.cpp
    M src/units/unit.cpp
    M src/units/unit.hpp
    M src/variable.cpp
    M src/variable.hpp
    M src/video.hpp
    M src/wesnoth.cpp
    M src/whiteboard/action.hpp
    M src/whiteboard/attack.hpp
    M src/whiteboard/highlighter.cpp
    M src/whiteboard/manager.cpp
    M src/whiteboard/manager.hpp
    M src/whiteboard/mapbuilder.cpp
    M src/whiteboard/move.cpp
    M src/whiteboard/move.hpp
    M src/whiteboard/recall.hpp
    M src/whiteboard/recruit.hpp
    M src/whiteboard/side_actions.cpp
    M src/whiteboard/side_actions.hpp
    M src/whiteboard/suppose_dead.hpp
    M src/whiteboard/typedefs.hpp
    M src/widgets/combo_drag.hpp
    M src/widgets/drop_target.cpp
    M src/widgets/drop_target.hpp
    M src/wmi_pager.cpp
    M src/wmi_pager.hpp

  Log Message:
  -----------
  Refactor most boost pointer related stuff to use their stdlib counterparts

This constitutes drop-in replacements for:

* boost::shared_ptr
* boost::scoped_ptr
* boost::weak_ptr
* boost::enable_shared_from_this
* boost::static_pointer_cast
* boost::dynamic_pointer_cast

This excludes boost::intrusive_ptr, except for stray includes. Refactoring that is more complicated.


  Commit: 563947e1b344dd3a44850feab113136635966cb0
      https://github.com/wesnoth/wesnoth/commit/563947e1b344dd3a44850feab113136635966cb0
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-07-25 (Mon, 25 Jul 2016)

  Changed paths:
    M src/gui/core/canvas.cpp
    M src/gui/core/canvas.hpp
    M src/gui/core/widget_definition.hpp
    M src/gui/core/window_builder.cpp
    M src/gui/core/window_builder.hpp
    M src/gui/dialogs/chat_log.cpp
    M src/gui/dialogs/gamestate_inspector.cpp
    M src/gui/dialogs/multiplayer/mp_change_control.cpp
    M src/gui/widgets/container.cpp
    M src/gui/widgets/container.hpp
    M src/gui/widgets/generator.hpp
    M src/gui/widgets/horizontal_scrollbar.cpp
    M src/gui/widgets/label.cpp
    M src/gui/widgets/listbox.cpp
    M src/gui/widgets/matrix.cpp
    M src/gui/widgets/minimap.cpp
    M src/gui/widgets/multi_page.cpp
    M src/gui/widgets/panel.cpp
    M src/gui/widgets/scroll_label.cpp
    M src/gui/widgets/scrollbar_panel.cpp
    M src/gui/widgets/settings.hpp
    M src/gui/widgets/slider.cpp
    M src/gui/widgets/stacked_widget.cpp
    M src/gui/widgets/text_box.cpp
    M src/gui/widgets/toggle_panel.cpp
    M src/gui/widgets/tree_view.cpp
    M src/gui/widgets/unit_preview_pane.cpp
    M src/gui/widgets/vertical_scrollbar.cpp
    M src/gui/widgets/window.cpp
    M src/gui/widgets/window.hpp

  Log Message:
  -----------
  Refactored GUI2's uses of boost::intrusive_ptr


  Commit: 04c1af1d9527b07e8447f0e0c74013c2f0f1b343
      https://github.com/wesnoth/wesnoth/commit/04c1af1d9527b07e8447f0e0c74013c2f0f1b343
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-07-25 (Mon, 25 Jul 2016)

  Changed paths:
    M projectfiles/CodeBlocks/wesnoth.cbp
    M src/actions/undo.cpp
    M src/ai/contexts.cpp
    M src/ai/formula/ai.cpp
    M src/ai/formula/candidates.cpp
    M src/ai/formula/stage_side_formulas.cpp
    M src/ai/formula/stage_unit_formulas.cpp
    M src/formula/callable.hpp
    M src/formula/callable_fwd.hpp
    M src/formula/formula.cpp
    M src/formula/function.cpp
    M src/formula/variant.cpp
    M src/formula/variant.hpp
    R src/reference_counted_object.hpp
    M src/units/filter.cpp
    M src/units/formula_manager.cpp
    M src/units/formula_manager.hpp

  Log Message:
  -----------
  Refactored formula's use of boost::intrusive_ptr


Compare: https://github.com/wesnoth/wesnoth/compare/7989384acba9...04c1af1d9527


More information about the Commits mailing list