Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
campaignd: Refactor construct_message/error() functions and boilerplate
This replaces them with two methods that are part of the server class itself. These functions were always used in conjunction with network::send_data() to send the generated WML object to a network client. Because the config was created within the functions and not on the callsite, this resulted in a call to the config copy constructor that could be avoided by grouping the network::send_data() call together with the WML generation. (Backported e535443 from master.) Conflicts: src/campaign_server/campaign_server.cpp
- Loading branch information
Showing
2 changed files
with
55 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters