Skip to content

Commit

Permalink
Yet more fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Feb 5, 2025
1 parent 1c5511f commit c29aa7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uzuki2/parse_json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ std::shared_ptr<Base> parse_object(const millijson::Base* contents, Externals& e
auto names_ptr = has_names(map, path);
bool has_names = names_ptr != NULL;

std::string values_name = "values"; // avoid dangling reference from casting of string literal.
const std::string values_name = "values"; // avoid dangling reference from casting of string literal.
const auto& vals = extract_array(map, values_name, path);
auto ptr = Provisioner::new_List(vals.size(), has_names);
output.reset(ptr);
Expand Down

0 comments on commit c29aa7b

Please sign in to comment.