Adapting to the new library version
This commit is contained in:
parent
a2bd12c993
commit
97d57bae7a
1 changed files with 6 additions and 3 deletions
|
|
@ -225,7 +225,7 @@ namespace gui_to_app {
|
||||||
|
|
||||||
static void convert_to_label(std::array<char, 10> &convert,
|
static void convert_to_label(std::array<char, 10> &convert,
|
||||||
const std::string_view &err_msg,
|
const std::string_view &err_msg,
|
||||||
const uint32_t data,
|
const std::int32_t data,
|
||||||
Gtk::Label *const __restrict label) noexcept {
|
Gtk::Label *const __restrict label) noexcept {
|
||||||
if (const auto [ptr, ec] = std::to_chars(convert.data(), convert.data() + convert.size(), data);
|
if (const auto [ptr, ec] = std::to_chars(convert.data(), convert.data() + convert.size(), data);
|
||||||
ec != std::errc()) {
|
ec != std::errc()) {
|
||||||
|
|
@ -244,10 +244,13 @@ namespace gui_to_app {
|
||||||
const std::string_view short_name,
|
const std::string_view short_name,
|
||||||
const CaracInterface<Gtk::Label> &labels) noexcept {
|
const CaracInterface<Gtk::Label> &labels) noexcept {
|
||||||
std::array<char, 10> convert{};
|
std::array<char, 10> convert{};
|
||||||
convert_to_label(convert, std::format("base {}", short_name), charac.get_base(), labels.base);
|
convert_to_label(convert,
|
||||||
|
std::format("base {}", short_name),
|
||||||
|
static_cast<std::int32_t>(charac.get_base()),
|
||||||
|
labels.base);
|
||||||
convert_to_label(convert,
|
convert_to_label(convert,
|
||||||
std::format("carac {}", short_name),
|
std::format("carac {}", short_name),
|
||||||
charac.get_carac(),
|
static_cast<std::int32_t>(charac.get_carac()),
|
||||||
labels.carac);
|
labels.carac);
|
||||||
convert_to_label(convert,
|
convert_to_label(convert,
|
||||||
std::format("materiel {}", short_name),
|
std::format("materiel {}", short_name),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue