mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-09 17:41:48 +08:00
Fix> ../src/slic3r/GUI/Jobs/EmbossJob.cpp:109:33: error: no matching function for call to 'std::exception::exception(const char* const&)'
This commit is contained in:
parent
65bcb896b4
commit
a865fbf3b1
@ -1,5 +1,7 @@
|
||||
#include "EmbossJob.hpp"
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include <libslic3r/Model.hpp>
|
||||
#include <libslic3r/Format/OBJ.hpp> // load_obj for default mesh
|
||||
#include <libslic3r/CutSurface.hpp> // use surface cuts
|
||||
@ -104,12 +106,10 @@ static Emboss::OrthoProject3f create_emboss_projection(
|
||||
static void create_message(const std::string &message); // only in finalize
|
||||
static bool process(std::exception_ptr &eptr);
|
||||
|
||||
class EmbossJobException: public std::exception {
|
||||
public: EmbossJobException(char const *const message)
|
||||
: std::exception(message)
|
||||
{}
|
||||
};
|
||||
}
|
||||
class EmbossJobException : public std::runtime_error
|
||||
{ public: EmbossJobException(const char* message):runtime_error(message){}};
|
||||
|
||||
}// namespace priv
|
||||
|
||||
/////////////////
|
||||
/// Create Volume
|
||||
|
Loading…
x
Reference in New Issue
Block a user