[wesnoth-commits] [wesnoth/wesnoth] 3bea67: Quit Confirmation: defined static variable inline

Charles Dang noreply at github.com
Sun Jan 17 22:44:51 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 3bea67efc6db13d7860c75adc233c412433a03ad
      https://github.com/wesnoth/wesnoth/commit/3bea67efc6db13d7860c75adc233c412433a03ad
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2021-01-18 (Mon, 18 Jan 2021)

  Changed paths:
    M src/quit_confirmation.cpp
    M src/quit_confirmation.hpp

  Log Message:
  -----------
  Quit Confirmation: defined static variable inline


  Commit: b54ce01134750853bfb3db939a53348f859a6c57
      https://github.com/wesnoth/wesnoth/commit/b54ce01134750853bfb3db939a53348f859a6c57
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2021-01-18 (Mon, 18 Jan 2021)

  Changed paths:
    M src/actions/create.cpp
    M src/actions/move.cpp
    M src/ai/simulated_actions.cpp
    M src/attack_prediction.cpp
    M src/formula/formula.cpp
    M src/game_events/wmi_manager.cpp
    M src/gui/dialogs/attack_predictions.cpp
    M src/gui/dialogs/preferences_dialog.cpp
    M src/gui/widgets/settings.cpp
    M src/picture.cpp
    M src/preferences/game.cpp
    M src/scripting/lua_unit.cpp
    M src/tests/test_formula_timespan.cpp
    M src/video.cpp

  Log Message:
  -----------
  Deployed structured bindings

This doesn't touch cases where `std::tie` was used with `std::ignore`, since there isn't a way to
ignore a variable in structured bindings and choosing a random variable name might trigger unused
variable warnings on CI (will have to confirm that, though).


Compare: https://github.com/wesnoth/wesnoth/compare/f91f02b4fd04...b54ce0113475



More information about the Commits mailing list