mirror of
https://github.com/edubart/otclient.git
synced 2025-11-07 13:56:22 +01:00
Huge engine change, replace all std::shared_ptrs
Create a new shared pointer type stdext::shared_object_ptr and stdext::shared_obj using boost::intrusive_ptr Advantages: * half memory usage * faster and lightweight Disadvantages: * using weak_ptr is not supported anymore * compiling seems slower
This commit is contained in:
@@ -38,7 +38,7 @@ public:
|
||||
void setSpacing(int spacing) { m_spacing = spacing; update(); }
|
||||
void setFitChildren(bool fitParent) { m_fitChildren = fitParent; update(); }
|
||||
|
||||
UIBoxLayoutPtr asUIBoxLayout() { return std::static_pointer_cast<UIBoxLayout>(shared_from_this()); }
|
||||
bool isUIBoxLayout() { return true; }
|
||||
|
||||
protected:
|
||||
Boolean<false> m_fitChildren;
|
||||
|
||||
Reference in New Issue
Block a user