[Commits] [wesnoth/wesnoth] 0ead90: Removed make_dialog_callback in favor of a lambda

GitHub noreply at github.com
Thu Oct 6 05:11:12 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 0ead900f8f5fa443949577c4d6c08aa9583d04f6
      https://github.com/wesnoth/wesnoth/commit/0ead900f8f5fa443949577c4d6c08aa9583d04f6
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-10-06 (Thu, 06 Oct 2016)

  Changed paths:
    M src/gui/dialogs/helper.hpp
    M src/gui/dialogs/preferences_dialog.cpp

  Log Message:
  -----------
  Removed make_dialog_callback in favor of a lambda

This helper function was added to assist with dialog callbacks that took more than just a twindow argument.
However, now that we use C++11, a lambda is a cleaner solution.





More information about the Commits mailing list