Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
campaignd: Use const references or values where applicable
Some old code used copies or read-write refererences for strings that are never deliberately modified afterwards; and a bit of my own code gets a (arguably tiny) WML config by value from a method that always returns a read-only reference, missing out on a tiny optimization opportunity by avoiding a config copy. There was also a once-written int variable in handle_request_campaign(). (Backported fb5c5ab from master.)
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 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