Another warning fix for gcc 11

This commit is contained in:
tamasmeszaros 2021-10-20 15:48:39 +02:00
parent ed67fb506e
commit 6887fa829e

View File

@ -1216,7 +1216,7 @@ DynamicConfig SLAPrintStatistics::config() const
DynamicConfig SLAPrintStatistics::placeholders() DynamicConfig SLAPrintStatistics::placeholders()
{ {
DynamicConfig config; DynamicConfig config;
for (const std::string &key : { for (const char *key : {
"print_time", "total_cost", "total_weight", "print_time", "total_cost", "total_weight",
"objects_used_material", "support_used_material" }) "objects_used_material", "support_used_material" })
config.set_key_value(key, new ConfigOptionString(std::string("{") + key + "}")); config.set_key_value(key, new ConfigOptionString(std::string("{") + key + "}"));