[wesnoth-commits] [wesnoth/wesnoth] 6794f2: config: Don't create differently-typed copies of i...
Iris Morelle
noreply at github.com
Thu May 13 00:16:03 UTC 2021
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 6794f231e5089260fa20d2a28f31bd720256346f
https://github.com/wesnoth/wesnoth/commit/6794f231e5089260fa20d2a28f31bd720256346f
Author: Iris Morelle <shadowm at wesnoth.org>
Date: 2021-05-12 (Wed, 12 May 2021)
Changed paths:
M src/config.hpp
Log Message:
-----------
config: Don't create differently-typed copies of input in loops
This is prompted by 1f8101ef22bb23699421505235f4962802773c77. This
approach should still be correct while hopefully not bothering any
compilers *and* avoiding unnecessary copies or conversions until the
input actually needs to be converted to a different type (in this case
std::string_view, which is cheaper than std::string).
More information about the Commits
mailing list