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

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


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: d7412ca7b96eb2390bb5ff44331679818e12b8e4
      https://github.com/wesnoth/wesnoth/commit/d7412ca7b96eb2390bb5ff44331679818e12b8e4
  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.

(Backported fd1ce64d88681970404adce6973d4d91b0e493d9 from master.)





More information about the Commits mailing list