diff --git a/src/libslic3r/Emboss.cpp b/src/libslic3r/Emboss.cpp index c23b731182..23a3d244a0 100644 --- a/src/libslic3r/Emboss.cpp +++ b/src/libslic3r/Emboss.cpp @@ -431,7 +431,7 @@ std::optional Emboss::get_font_path(const std::wstring &font_face_ } #endif -std::unique_ptr Emboss::load_font(const std::vector&& data) +std::unique_ptr Emboss::load_font(std::vector&& data) { unsigned int collection_size = 0; int font_offset = 0; diff --git a/src/libslic3r/Emboss.hpp b/src/libslic3r/Emboss.hpp index f928397349..13a95df3f7 100644 --- a/src/libslic3r/Emboss.hpp +++ b/src/libslic3r/Emboss.hpp @@ -67,7 +67,7 @@ public: Emboss::Glyphs cache; // cache of glyphs - Font(const std::vector &&buffer, + Font(std::vector &&buffer, unsigned int count, int ascent, int descent, @@ -88,7 +88,7 @@ public: /// Font object when loaded. static std::unique_ptr load_font(const char *file_path); // data = raw file data - static std::unique_ptr load_font(const std::vector&& data); + static std::unique_ptr load_font(std::vector&& data); #ifdef _WIN32 // fix for unknown pointer HFONT using HFONT = void*;