Skip to content

Commit

Permalink
Config: Use std::move on strings to avoid copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonicadvance1 committed Sep 9, 2024
1 parent 3b61394 commit fbe817f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FEXCore/Scripts/config_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def print_parse_argloader_options(options):
conversion_func = "FEXCore::Config::Handler::{0}(".format(op_vals["ArgumentHandler"])
if (value_type == "str"):
NeedsString = True
conversion_func = "("
conversion_func = "std::move("
if (value_type == "bool"):
# boolean values need a decimal specifier. Otherwise fmt prints strings.
conversion_func = "fextl::fmt::format(\"{:d}\", "
Expand Down

0 comments on commit fbe817f

Please sign in to comment.