mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Trying to make all C++ of the platforms happy.
This commit is contained in:
parent
9fd0c55eb8
commit
211d1ee1e3
3 changed files with 18 additions and 16 deletions
|
@ -69,7 +69,6 @@ protected:
|
|||
void assign_new_unique_ids_recursive() { this->set_new_unique_id(); }
|
||||
|
||||
private:
|
||||
friend class UndoRedo::StackImpl;
|
||||
ObjectID m_id;
|
||||
|
||||
static inline ObjectID generate_new_id() { return ObjectID(++ s_last_id); }
|
||||
|
@ -77,9 +76,9 @@ private:
|
|||
|
||||
friend ObjectID wipe_tower_object_id();
|
||||
friend ObjectID wipe_tower_instance_id();
|
||||
friend class Slic3r::UndoRedo::StackImpl;
|
||||
|
||||
friend class cereal::access;
|
||||
friend class Slic3r::UndoRedo::StackImpl;
|
||||
template<class Archive> void serialize(Archive &ar) { ar(m_id); }
|
||||
ObjectBase(const ObjectID id) : m_id(id) {}
|
||||
template<class Archive> static void load_and_construct(Archive & ar, cereal::construct<ObjectBase> &construct) { ObjectID id; ar(id); construct(id); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue