[Commits] [wesnoth/wesnoth] 9efe22: Unit/Type: formatting cleanup

GitHub noreply at github.com
Mon Sep 4 19:25:46 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 9efe22989af60b1fb2d3ab30a988aa3b55fb1fd8
      https://github.com/wesnoth/wesnoth/commit/9efe22989af60b1fb2d3ab30a988aa3b55fb1fd8
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-09-05 (Tue, 05 Sep 2017)

  Changed paths:
    M src/units/types.cpp

  Log Message:
  -----------
  Unit/Type: formatting cleanup


  Commit: 23e68633dac026324c48573d21553e3ef508f261
      https://github.com/wesnoth/wesnoth/commit/23e68633dac026324c48573d21553e3ef508f261
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-09-05 (Tue, 05 Sep 2017)

  Changed paths:
    M src/units/map.hpp

  Log Message:
  -----------
  Units/Map: added an empty() function


  Commit: 2eacb4e1c3c9a14d85aa1602ddc6b248441ed7fa
      https://github.com/wesnoth/wesnoth/commit/2eacb4e1c3c9a14d85aa1602ddc6b248441ed7fa
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-09-05 (Tue, 05 Sep 2017)

  Changed paths:
    M src/arrow.cpp
    M src/display.cpp
    M src/floating_textbox.cpp
    M src/game_initialization/create_engine.cpp
    M src/game_launcher.cpp
    M src/generators/cave_map_generator.cpp
    M src/generators/default_map_generator_job.cpp
    M src/gui/dialogs/campaign_selection.cpp
    M src/help/help.cpp
    M src/help/help_browser.cpp
    M src/help/help_impl.cpp
    M src/help/help_text_area.cpp
    M src/hotkey/hotkey_item.hpp
    M src/map/label.cpp
    M src/playsingle_controller.cpp
    M src/saved_game.cpp
    M src/serialization/string_utils.cpp
    M src/server/game.cpp
    M src/server/server.cpp
    M src/tests/test_config.cpp
    M src/units/animation.cpp
    M src/units/attack_type.cpp
    M src/units/types.cpp
    M src/units/unit.cpp
    M src/widgets/widget.cpp

  Log Message:
  -----------
  Use !std::string::empty() for string-is-not-empty comparisons


  Commit: 542f65d2a7bb10dee0de7f3933fcf218c49a8d38
      https://github.com/wesnoth/wesnoth/commit/542f65d2a7bb10dee0de7f3933fcf218c49a8d38
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-09-05 (Tue, 05 Sep 2017)

  Changed paths:
    M src/chat_events.cpp
    M src/display.cpp
    M src/formula/string_utils.cpp
    M src/game_events/pump.cpp
    M src/game_initialization/flg_manager.cpp
    M src/generators/map_create.cpp
    M src/gui/dialogs/help_browser.cpp
    M src/help/help_browser.cpp
    M src/help/help_impl.cpp
    M src/help/help_text_area.cpp
    M src/replay.cpp
    M src/savegame.cpp
    M src/server/game.cpp
    M src/server/server.cpp
    M src/server/user_handler.cpp
    M src/terrain/terrain.cpp
    M src/tests/test_addons.cpp
    M src/tests/test_config.cpp
    M src/tests/test_serialization.cpp
    M src/units/unit.cpp

  Log Message:
  -----------
  Use std::string::empty() for string-is-empty comparisons


  Commit: f38f6ae51a16e1ed8ffcfad4d9a657360ee65c59
      https://github.com/wesnoth/wesnoth/commit/f38f6ae51a16e1ed8ffcfad4d9a657360ee65c59
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-09-05 (Tue, 05 Sep 2017)

  Changed paths:
    M src/ai/default/ca.cpp
    M src/editor/controller/editor_controller.cpp
    M src/formula/function.cpp
    M src/serialization/string_utils.cpp

  Log Message:
  -----------
  Use !container::empty() for container-is-not-empty checks


  Commit: 311223f32e65061fd8aac5869c599f8f756958b2
      https://github.com/wesnoth/wesnoth/commit/311223f32e65061fd8aac5869c599f8f756958b2
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-09-05 (Tue, 05 Sep 2017)

  Changed paths:
    M src/ai/default/ca.cpp
    M src/game_initialization/connect_engine.cpp
    M src/gui/dialogs/lua_interpreter.cpp
    M src/gui/dialogs/multiplayer/mp_alerts_options.cpp
    M src/help/help_topic_generators.cpp
    M src/image_modifications.hpp
    M src/playsingle_controller.cpp

  Log Message:
  -----------
  Use container::empty() for container-is-empty checks


  Commit: 1de824c36ed0b8ca6191712ca479c9803ebd2e0a
      https://github.com/wesnoth/wesnoth/commit/1de824c36ed0b8ca6191712ca479c9803ebd2e0a
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-09-05 (Tue, 05 Sep 2017)

  Changed paths:
    M src/campaign_server/campaign_server.cpp
    M src/desktop/paths.cpp
    M src/filesystem_sdl.cpp
    M src/sdl/utils.cpp
    M src/server/mysql_prepared_statement.ipp
    M src/server/server.cpp
    M src/whiteboard/highlighter.cpp

  Log Message:
  -----------
  Convert remaining NULLs to nullptrs


Compare: https://github.com/wesnoth/wesnoth/compare/10b175a73feb...1de824c36ed0


More information about the Commits mailing list