From fef729b75ac431d21b6bdee38254112e79af1cd4 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Mon, 14 Dec 2020 12:23:29 +0100 Subject: [PATCH] Follow-up to c34b683970dcd7fd9640576833cff1d198af5b7f Fix of Slic3r::GUI::format/format_wxstr() for wxString&& --- src/slic3r/GUI/format.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/format.hpp b/src/slic3r/GUI/format.hpp index d7b0256c6d..894803917d 100644 --- a/src/slic3r/GUI/format.hpp +++ b/src/slic3r/GUI/format.hpp @@ -50,6 +50,9 @@ namespace internal { inline const utf8_buffer cook(wxString &arg) { return utf8_buffer { arg.ToUTF8() }; } + inline const utf8_buffer cook(wxString &&arg) { + return utf8_buffer{ arg.ToUTF8() }; + } } }