[Commits] [wesnoth/wesnoth] fe0870: Change most vector<bool> to dynamic_bitset

GitHub noreply at github.com
Fri Sep 16 02:59:17 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: fe08701b7ca3639b17dca20023d2bb34433042c6
      https://github.com/wesnoth/wesnoth/commit/fe08701b7ca3639b17dca20023d2bb34433042c6
  Author: Celtic Minstrel <celtic.minstrel.ca at gmail.com>
  Date:   2016-09-15 (Thu, 15 Sep 2016)

  Changed paths:
    M src/actions/vision.cpp
    M src/addon/manager_ui.cpp
    M src/ai/default/ca.cpp
    M src/game_initialization/multiplayer_lobby.hpp
    M src/gui/dialogs/addon/filter_options.cpp
    M src/gui/dialogs/addon/filter_options.hpp
    M src/gui/dialogs/addon/list.cpp
    M src/gui/dialogs/game_load.cpp
    M src/gui/dialogs/lobby/info.hpp
    M src/gui/dialogs/multiplayer/mp_create_game.cpp
    M src/gui/dialogs/preferences_dialog.cpp
    M src/gui/dialogs/unit_create.cpp
    M src/gui/dialogs/unit_recall.cpp
    M src/gui/widgets/list.cpp
    M src/gui/widgets/list.hpp
    M src/gui/widgets/listbox.cpp
    M src/gui/widgets/listbox.hpp
    M src/playsingle_controller.cpp
    M src/reports.cpp
    M src/team.cpp
    M src/team.hpp
    M src/units/abilities.cpp
    M src/units/attack_type.hpp
    M src/units/unit.cpp
    M src/units/unit.hpp
    M src/whiteboard/manager.hpp
    M src/widgets/scrollpane.cpp

  Log Message:
  -----------
  Change most vector<bool> to dynamic_bitset

A few cases were skipped, most of which involved 2D bitsets (eg shroud)
or uses that could not be easily translated (eg GUI1 multimenu).

In a few cases, code needed to be updated for the different API that the
dynamic_bitset provides, but in most cases, this change is entirely
transparent.

There are probably a few unnecessary dynamic_bitset.hpp includes.

One use of vector<bool> was replaced instead with std::bitset, since
the dynamic size was not required.


  Commit: 4cf5be674c6e2972c26a43a1d74315cf671f5f96
      https://github.com/wesnoth/wesnoth/commit/4cf5be674c6e2972c26a43a1d74315cf671f5f96
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-09-16 (Fri, 16 Sep 2016)

  Changed paths:
    M src/actions/vision.cpp
    M src/addon/manager_ui.cpp
    M src/ai/default/ca.cpp
    M src/game_initialization/multiplayer_lobby.hpp
    M src/gui/dialogs/addon/filter_options.cpp
    M src/gui/dialogs/addon/filter_options.hpp
    M src/gui/dialogs/addon/list.cpp
    M src/gui/dialogs/game_load.cpp
    M src/gui/dialogs/lobby/info.hpp
    M src/gui/dialogs/multiplayer/mp_create_game.cpp
    M src/gui/dialogs/preferences_dialog.cpp
    M src/gui/dialogs/unit_create.cpp
    M src/gui/dialogs/unit_recall.cpp
    M src/gui/widgets/list.cpp
    M src/gui/widgets/list.hpp
    M src/gui/widgets/listbox.cpp
    M src/gui/widgets/listbox.hpp
    M src/playsingle_controller.cpp
    M src/reports.cpp
    M src/team.cpp
    M src/team.hpp
    M src/units/abilities.cpp
    M src/units/attack_type.hpp
    M src/units/unit.cpp
    M src/units/unit.hpp
    M src/whiteboard/manager.hpp
    M src/widgets/scrollpane.cpp

  Log Message:
  -----------
  Merge pull request #781 from wesnoth/dynamic_bitset

Change most vector<bool> to dynamic_bitset


Compare: https://github.com/wesnoth/wesnoth/compare/b9a97d893d40...4cf5be674c6e


More information about the Commits mailing list