diff --git a/src/slic3r/GUI/format.hpp b/src/slic3r/GUI/format.hpp index bc6fe7b1b..d7b0256c6 100644 --- a/src/slic3r/GUI/format.hpp +++ b/src/slic3r/GUI/format.hpp @@ -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() }; + } } }