[Commits] [wesnoth/wesnoth] fd1ce6: campaignd: Add server* this parameter to server::r...

GitHub noreply at github.com
Sat Oct 11 00:51:07 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: fd1ce64d88681970404adce6973d4d91b0e493d9
      https://github.com/wesnoth/wesnoth/commit/fd1ce64d88681970404adce6973d4d91b0e493d9
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2014-10-10 (Fri, 10 Oct 2014)

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

  Log Message:
  -----------
  campaignd: Add server* this parameter to server::request_handler type

This gets rid of the need for binding this pointers for every registered
request handler in the handler table, and saves us some negligible
theoretical overhead from boost::bind. As a bonus, the
REGISTER_CAMPAIGND_HANDLER macro is more readable.

Now we pass the current pointer during the actual handler calls instead.





More information about the Commits mailing list