Remove use cases of deprecated functionality

This commit is contained in:
Elias Kosunen
2019-02-02 05:48:39 -08:00
committed by Victor Zverovich
parent 34951f1999
commit c3268f4e50
3 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -284,8 +284,8 @@ class prepared_format {
const auto arg =
value.spec.arg_id.which ==
format_part_t::argument_id::which_arg_id::index
? ctx.get_arg(arg_id_value.index)
: ctx.get_arg(arg_id_value.named_index.to_view(format_));
? ctx.arg(arg_id_value.index)
: ctx.arg(arg_id_value.named_index.to_view(format_));
auto specs = value.spec.parsed_specs;
@@ -317,7 +317,7 @@ class prepared_format {
void format_arg(Context& ctx, Id arg_id) const {
ctx.parse_context().check_arg_id(arg_id);
const auto stopped_at =
visit_format_arg(arg_formatter<Range>(ctx), ctx.get_arg(arg_id));
visit_format_arg(arg_formatter<Range>(ctx), ctx.arg(arg_id));
ctx.advance_to(stopped_at);
}