Commit 3ca524ac authored by cutealien's avatar cutealien

Pass the rectangle in the IGUIElement constructor as const ref (thx at randomMesh)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3012 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 6e3bc81a
...@@ -28,7 +28,7 @@ public: ...@@ -28,7 +28,7 @@ public:
//! Constructor //! Constructor
IGUIElement(EGUI_ELEMENT_TYPE type, IGUIEnvironment* environment, IGUIElement* parent, IGUIElement(EGUI_ELEMENT_TYPE type, IGUIEnvironment* environment, IGUIElement* parent,
s32 id, core::rect<s32> rectangle) s32 id, const core::rect<s32>& rectangle)
: Parent(0), RelativeRect(rectangle), AbsoluteRect(rectangle), : Parent(0), RelativeRect(rectangle), AbsoluteRect(rectangle),
AbsoluteClippingRect(rectangle), DesiredRect(rectangle), AbsoluteClippingRect(rectangle), DesiredRect(rectangle),
MaxSize(0,0), MinSize(1,1), IsVisible(true), IsEnabled(true), MaxSize(0,0), MinSize(1,1), IsVisible(true), IsEnabled(true),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment