From c398e9b2af030a5934981ad16fc566227e6453dd Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Tue, 20 Nov 2018 16:29:21 +0100 Subject: [PATCH] tryfix for linux build... --- src/libslic3r/PrintBase.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/libslic3r/PrintBase.hpp b/src/libslic3r/PrintBase.hpp index 94c732c0b..8f7ac3b76 100644 --- a/src/libslic3r/PrintBase.hpp +++ b/src/libslic3r/PrintBase.hpp @@ -237,16 +237,19 @@ public: virtual void process() = 0; struct Status { - Status(int percent, const std::string &text, unsigned int flags = 0) : percent(percent), text(text), flags(flags) {} int percent; std::string text; + unsigned int flags; // Bitmap of FlagBits + // Bitmap of flags. enum FlagBits { RELOAD_SCENE = 1, }; - // Bitmap of FlagBits - unsigned int flags; + + inline Status(int percent, const std::string &text, unsigned int flags = 0) : + percent(percent), text(text), flags(flags) {} }; + typedef std::function status_callback_type; // Default status console print out in the form of percent => message. void set_status_default() { m_status_callback = nullptr; }