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:
parent
57ba953b2e
commit
c34b683970
@ -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() };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user