[wesnoth-commits] [wesnoth/wesnoth] f7f658: MP Staging: used std::invoke instead of raw functi...

Charles Dang noreply at github.com
Wed Jul 21 12:00:31 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f7f658a6a4916ed8042fa5993189e2fe120ab051
      https://github.com/wesnoth/wesnoth/commit/f7f658a6a4916ed8042fa5993189e2fe120ab051
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M src/gui/dialogs/multiplayer/mp_staging.cpp

  Log Message:
  -----------
  MP Staging: used std::invoke instead of raw function pointers


  Commit: 3f053046a6c3978c9d9e452a320e94fa705e75a1
      https://github.com/wesnoth/wesnoth/commit/3f053046a6c3978c9d9e452a320e94fa705e75a1
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M src/gui/widgets/chatbox.cpp

  Log Message:
  -----------
  GUI2/Chatbox: used config::optional_child


  Commit: 7205d842aed68c64ea8df3a512366ed694930fe6
      https://github.com/wesnoth/wesnoth/commit/7205d842aed68c64ea8df3a512366ed694930fe6
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M src/gettext.cpp
    M src/gui/core/timer.cpp
    M src/log.cpp
    M src/wesnothd_connection.cpp

  Log Message:
  -----------
  Replaced std::lock_guard with std::scoped_lock

Both do the same thing except the latter can handle multiple mutexes. We don't require such behavior
right now, but if we ever do we can just plug it right in.


Compare: https://github.com/wesnoth/wesnoth/compare/0edaa76c4e2c...7205d842aed6



More information about the Commits mailing list