diff --git a/include/util/format.hpp b/include/util/format.hpp index 00b6a31c..069d8897 100644 --- a/include/util/format.hpp +++ b/include/util/format.hpp @@ -93,7 +93,7 @@ template <> struct formatter : formatter { template auto format(const Glib::ustring& value, FormatContext& ctx) { - return formatter::format(value, ctx); + return formatter::format(static_cast(value), ctx); } }; } // namespace fmt diff --git a/src/modules/sni/item.cpp b/src/modules/sni/item.cpp index 9d3fc4bd..871621fb 100644 --- a/src/modules/sni/item.cpp +++ b/src/modules/sni/item.cpp @@ -22,7 +22,7 @@ struct fmt::formatter : formatter { template auto format(const Glib::VariantBase& value, FormatContext& ctx) { if (is_printable(value)) { - return formatter::format(value.print(), ctx); + return formatter::format(static_cast(value.print()), ctx); } else { return formatter::format(value.get_type_string(), ctx); }