Fix of Slic3r::GUI::format/format_wxstr() for non-const wxString references.

Vojtech seemingly does not understand perfect forwarding:
Why Slic3r::internal::format::cook(T&& arg) is taken for non-const wxString reference?
This commit is contained in:
Vojtech Bubnik 2020-12-14 12:06:39 +01:00
parent 57ba953b2e
commit c34b683970

View File

@ -45,6 +45,11 @@ namespace internal {
inline const utf8_buffer cook(const wxString &arg) {
return utf8_buffer { arg.ToUTF8() };
}
// Vojtech seemingly does not understand perfect forwarding:
// Why Slic3r::internal::format::cook(T&& arg) is taken for non-const wxString reference?
inline const utf8_buffer cook(wxString &arg) {
return utf8_buffer { arg.ToUTF8() };
}
}
}