Skip to content

Commit 586ea06

Browse files
committed
Rename set_fill to copy_fill_from
1 parent 5750f43 commit 586ea06

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/fmt/base.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ class basic_specs {
843843
fill_data_[i & 3] = static_cast<char>(s[i]);
844844
}
845845

846-
FMT_CONSTEXPR void set_fill(const basic_specs& specs) {
846+
FMT_CONSTEXPR void copy_fill_from(const basic_specs& specs) {
847847
set_fill_size(specs.fill_size());
848848
for (size_t i = 0; i < max_fill_size; ++i)
849849
fill_data_[i] = specs.fill_data_[i];

include/fmt/format.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3968,7 +3968,7 @@ template <typename T, typename Char = char> struct nested_formatter {
39683968
write(basic_appender<Char>(buf));
39693969
auto specs = format_specs();
39703970
specs.width = width_;
3971-
specs.set_fill(specs_);
3971+
specs.copy_fill_from(specs_);
39723972
specs.set_align(specs_.align());
39733973
return detail::write<Char>(
39743974
ctx.out(), basic_string_view<Char>(buf.data(), buf.size()), specs);

include/fmt/std.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> {
696696

697697
auto outer_specs = format_specs();
698698
outer_specs.width = specs.width;
699-
outer_specs.set_fill(specs);
699+
outer_specs.copy_fill_from(specs);
700700
outer_specs.set_align(specs.align());
701701

702702
specs.width = 0;

0 commit comments

Comments
 (0)