[Commits] [wesnoth/wesnoth] 14db37: Convert uses of boost::regex and related functions...

GitHub noreply at github.com
Sun Aug 7 09:59:03 UTC 2016


  Branch: refs/heads/boost_trimming
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 14db37d7faea4ee12c162350a4bcc270c043417d
      https://github.com/wesnoth/wesnoth/commit/14db37d7faea4ee12c162350a4bcc270c043417d
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M src/ai/composite/component.cpp
    M src/editor/map/map_context.cpp
    M src/game_events/action_wml.cpp
    M src/serialization/schema_validator.cpp
    M src/serialization/schema_validator.hpp
    M src/tools/schema/sourceparser.cpp
    M src/units/types.cpp

  Log Message:
  -----------
  Convert uses of boost::regex and related functions/types to their stdlib counterparts

This covers:
* boost::regex
* boost::regex_match
* boost::smatch
* boost::sregex_iterator
* boost::sregex_token_iterator

boost::regex_constants::match_not_dot_null doesn't have a stdlib counterpart, but according to
@celticminstrel it should be alright to remove it.


  Commit: c3dd55e057d4c5d53e23fb69906018a92f895085
      https://github.com/wesnoth/wesnoth/commit/c3dd55e057d4c5d53e23fb69906018a92f895085
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M src/ai/composite/component.cpp
    M src/editor/map/map_context.cpp
    M src/game_events/action_wml.cpp
    M src/tools/schema/sourceparser.cpp

  Log Message:
  -----------
  Use raw string literals for regex

Also ensure some regexes cannot match null characters.


  Commit: dd5dc317e7838ebc9998d811eaf7df658809d3fd
      https://github.com/wesnoth/wesnoth/commit/dd5dc317e7838ebc9998d811eaf7df658809d3fd
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M src/gui/auxiliary/field.hpp
    M src/gui/core/event/dispatcher_private.hpp

  Log Message:
  -----------
  Remove a few more uses of Boost type traits and enable_if


  Commit: 9196d338e0a6c21c278786e8d9df8283d2d24629
      https://github.com/wesnoth/wesnoth/commit/9196d338e0a6c21c278786e8d9df8283d2d24629
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M src/config.cpp
    M src/gui/dialogs/lobby/lobby.cpp
    M src/server/server.cpp

  Log Message:
  -----------
  Remove some instances of boost::ref


  Commit: 42bec4fdc9de90b3bd409c08495d33f05f0f01c0
      https://github.com/wesnoth/wesnoth/commit/42bec4fdc9de90b3bd409c08495d33f05f0f01c0
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M src/gui/core/event/dispatcher.cpp
    M src/gui/core/event/dispatcher_private.hpp
    M src/side_filter.cpp
    M src/side_filter.hpp
    M src/terrain/filter.cpp
    M src/terrain/filter.hpp

  Log Message:
  -----------
  Remove a couple more MSVC 2008 workarounds


  Commit: ae2ccb34dea0b3dd5a41529cc171e63ce400811a
      https://github.com/wesnoth/wesnoth/commit/ae2ccb34dea0b3dd5a41529cc171e63ce400811a
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-07-30 (Sat, 30 Jul 2016)

  Changed paths:
    M src/desktop/dbus_notification.cpp
    M src/display_chat_manager.cpp
    M src/display_chat_manager.hpp
    M src/generators/cave_map_generator.cpp
    M src/generators/cave_map_generator.hpp
    M src/generators/default_map_generator.cpp
    M src/generators/default_map_generator.hpp
    M src/generators/default_map_generator_job.hpp
    M src/generators/lua_map_generator.cpp
    M src/generators/lua_map_generator.hpp
    M src/generators/map_generator.cpp
    M src/generators/map_generator.hpp
    M src/gui/dialogs/editor/generate_map.cpp
    M src/gui/dialogs/editor/generate_map.hpp
    M src/gui/widgets/helper.cpp
    M src/gui/widgets/helper.hpp
    M src/key.hpp
    M src/mt_rng.cpp
    M src/mt_rng.hpp
    M src/neon.hpp
    M src/network_asio.cpp
    M src/network_asio.hpp
    M src/random_new.hpp
    M src/scripting/lua_kernel_base.cpp
    M src/scripting/lua_kernel_base.hpp
    M src/scripting/lua_rng.cpp
    M src/scripting/mapgen_lua_kernel.cpp
    M src/scripting/mapgen_lua_kernel.hpp
    M src/seed_rng.hpp
    M src/serialization/unicode_types.hpp
    M src/server/server.cpp
    M src/server/server.hpp
    M src/tests/test_util.cpp
    M src/thread.cpp
    M src/thread.hpp
    M src/wesnothd_connection.cpp
    M src/wesnothd_connection.hpp
    M src/xBRZ/xbrz.hpp

  Log Message:
  -----------
  Convert uses of boost integer types to their stdlib equivalents


  Commit: c31ffa22a7a010daa924e4155bf460961f271184
      https://github.com/wesnoth/wesnoth/commit/c31ffa22a7a010daa924e4155bf460961f271184
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-07-30 (Sat, 30 Jul 2016)

  Changed paths:
    M src/game_events/action_wml.cpp
    M src/game_events/conditional_wml.cpp
    M src/play_controller.cpp
    M src/playturn_network_adapter.cpp
    M src/team.cpp
    M src/tests/test_map_location.cpp
    M src/tests/test_mp_connect.cpp

  Log Message:
  -----------
  Use initializer lists in place of remaining boost::asign::list_of cases


  Commit: b9662bf2f7ed38b447c21114f24107dd67fc45a8
      https://github.com/wesnoth/wesnoth/commit/b9662bf2f7ed38b447c21114f24107dd67fc45a8
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-07-30 (Sat, 30 Jul 2016)

  Changed paths:
    M src/tools/sdl2/window.cpp

  Log Message:
  -----------
  Convert remaining boost::lexical_cast cases to our own implementation (extension of 211ba2e770)


  Commit: 7f563da22f02e697953b48cb0ca470a97702a07d
      https://github.com/wesnoth/wesnoth/commit/7f563da22f02e697953b48cb0ca470a97702a07d
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-07-30 (Sat, 30 Jul 2016)

  Changed paths:
    M src/game_events/action_wml.cpp
    M src/game_events/conditional_wml.cpp
    M src/map/location.cpp
    M src/tests/test_map_location.cpp

  Log Message:
  -----------
  Include cleanup from c31ffa22a7a0


  Commit: 8ec544eedde523a143e87a67371e2ee5818abd9d
      https://github.com/wesnoth/wesnoth/commit/8ec544eedde523a143e87a67371e2ee5818abd9d
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-07-30 (Sat, 30 Jul 2016)

  Changed paths:
    M src/serialization/string_utils.hpp
    M src/server/server.cpp

  Log Message:
  -----------
  Convert cases of boost::next to std::next


  Commit: 46bb3c38dbe3a88c9dc5a9c00f4cea7f7c2db7f5
      https://github.com/wesnoth/wesnoth/commit/46bb3c38dbe3a88c9dc5a9c00f4cea7f7c2db7f5
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M src/formula/string_utils.hpp
    M src/game_initialization/connect_engine.cpp
    M src/synced_user_choice.cpp

  Log Message:
  -----------
  Replace boost map_list_of with C++11 initializers


  Commit: 30e71ef572da6532cdc67e04501967d8f12af443
      https://github.com/wesnoth/wesnoth/commit/30e71ef572da6532cdc67e04501967d8f12af443
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M src/ai/lua/core.cpp
    M src/game_events/manager_impl.cpp
    M src/game_events/manager_impl.hpp
    M src/image.cpp
    M src/image.hpp
    M src/map/location.hpp
    M src/units/map.hpp

  Log Message:
  -----------
  Remove use of boost::unordered_map

This also moves the LuaAI's push_location_key into public
view as the map_location hash function.


  Commit: 0649c75461fedb22b0d00d1c50d889cdc13c3584
      https://github.com/wesnoth/wesnoth/commit/0649c75461fedb22b0d00d1c50d889cdc13c3584
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M src/gui/dialogs/addon/filter_options.cpp
    M src/gui/dialogs/addon/filter_options.hpp
    M src/gui/dialogs/game_version.hpp
    M src/serialization/string_utils.cpp

  Log Message:
  -----------
  Remove uses of boost::array


  Commit: 2a88d0dd2c1cf8cae25002180419cf26576f3e4a
      https://github.com/wesnoth/wesnoth/commit/2a88d0dd2c1cf8cae25002180419cf26576f3e4a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2016-07-29 (Fri, 29 Jul 2016)

  Changed paths:
    M src/map/location.cpp
    M src/units/unit.cpp
    M src/variable_info_detail.hpp

  Log Message:
  -----------
  Remove a few other miscellanous Boost uses


  Commit: e8b4b447d404f004242d5794cc10eba10fd26f4a
      https://github.com/wesnoth/wesnoth/commit/e8b4b447d404f004242d5794cc10eba10fd26f4a
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-07-30 (Sat, 30 Jul 2016)

  Changed paths:
    M src/game_events/conditional_wml.cpp
    M src/play_controller.cpp
    M src/team.cpp
    M src/team.hpp

  Log Message:
  -----------
  Convert uses of boost::flat_set to std::set

The performance difference is irrelevant with the small number of elements.


  Commit: 071eee1d801408a802755e37ab03e2addfd16c73
      https://github.com/wesnoth/wesnoth/commit/071eee1d801408a802755e37ab03e2addfd16c73
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-07-30 (Sat, 30 Jul 2016)

  Changed paths:
    M src/gui/dialogs/message.cpp
    M src/gui/dialogs/message.hpp
    M src/gui/widgets/widget.cpp
    M src/gui/widgets/widget.hpp
    M src/scripting/lua_gui2.cpp

  Log Message:
  -----------
  Convert gui2::tvisible and gui2::tredraw_action to scoped enums


Compare: https://github.com/wesnoth/wesnoth/compare/b61e042bd18b...071eee1d8014


More information about the Commits mailing list