# HG changeset patch # User spq@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1215775753 0 # Node ID 70f41ea8e7db89dda3c21c56f0f3b3659a53cb46 # Parent fc6713d72b802b741478a9f59657a007fdf265b6 fix compile errors in node setters... diff -r fc6713d72b80 -r 70f41ea8e7db engine/core/view/renderers/genericrenderer.cpp --- a/engine/core/view/renderers/genericrenderer.cpp Fri Jul 11 11:25:11 2008 +0000 +++ b/engine/core/view/renderers/genericrenderer.cpp Fri Jul 11 11:29:13 2008 +0000 @@ -65,12 +65,12 @@ GenericRendererNode::~GenericRendererNode() { } - void GenericRendererNode::setAttached(Instance* attached_instance, const Location &relative_location, const Point &relative_point) { + void GenericRendererNode::setAttached(Instance* attached_instance, Location* relative_location, const Point &relative_point) { m_instance = attached_instance; m_location = relative_location; m_point = relative_point; } - void GenericRendererNode::setAttached(Instance* attached_instance, const Location &relative_location) { + void GenericRendererNode::setAttached(Instance* attached_instance, Location* relative_location) { m_instance = attached_instance; m_location = relative_location; } @@ -81,12 +81,12 @@ void GenericRendererNode::setAttached(Instance* attached_instance) { m_instance = attached_instance; } - void GenericRendererNode::setAttached(const Location &attached_location, const Point &relative_point) { + void GenericRendererNode::setAttached(Location* attached_location, const Point &relative_point) { m_instance = NULL; m_location = attached_location; m_point = relative_point; } - void GenericRendererNode::setAttached(const Location &attached_location) { + void GenericRendererNode::setAttached(Location* attached_location) { m_instance = NULL; m_location = attached_location; } @@ -96,13 +96,13 @@ m_point = attached_point; } - void GenericRendererNode::setRelative(const Location &relative_location) { + void GenericRendererNode::setRelative(Location* relative_location) { if(m_instance == NULL) { throw NotSupported("No instance attached."); } m_location = relative_location; } - void GenericRendererNode::setRelative(const Location &relative_location, Point relative_point) { + void GenericRendererNode::setRelative(Location* relative_location, Point relative_point) { if(m_instance == NULL) { throw NotSupported("No instance attached."); } diff -r fc6713d72b80 -r 70f41ea8e7db engine/core/view/renderers/genericrenderer.h --- a/engine/core/view/renderers/genericrenderer.h Fri Jul 11 11:25:11 2008 +0000 +++ b/engine/core/view/renderers/genericrenderer.h Fri Jul 11 11:29:13 2008 +0000 @@ -44,16 +44,16 @@ GenericRendererNode(const Point &attached_point); ~GenericRendererNode(); - void setAttached(Instance* attached_instance, const Location &relative_location, const Point &relative_point); - void setAttached(Instance* attached_instance, const Location &relative_location); + void setAttached(Instance* attached_instance, Location* relative_location, const Point &relative_point); + void setAttached(Instance* attached_instance, Location* relative_location); void setAttached(Instance* attached_instance, const Point &relative_point); void setAttached(Instance* attached_instance); - void setAttached(const Location &attached_location, const Point &relative_point); - void setAttached(const Location &attached_location); + void setAttached(Location* attached_location, const Point &relative_point); + void setAttached(Location* attached_location); void setAttached(const Point &attached_point); - void setRelative(const Location &relative_location); - void setRelative(const Location &relative_location, Point relative_point); + void setRelative(Location* relative_location); + void setRelative(Location* relative_location, Point relative_point); void setRelative(const Point &relative_point); Instance* getAttachedInstance(); diff -r fc6713d72b80 -r 70f41ea8e7db engine/core/view/renderers/genericrenderer.i --- a/engine/core/view/renderers/genericrenderer.i Fri Jul 11 11:25:11 2008 +0000 +++ b/engine/core/view/renderers/genericrenderer.i Fri Jul 11 11:29:13 2008 +0000 @@ -14,16 +14,16 @@ GenericRendererNode(const Point &attached_point); ~GenericRendererNode(); - void setAttached(Instance* attached_instance, const Location &relative_location, const Point &relative_point); - void setAttached(Instance* attached_instance, const Location &relative_location); + void setAttached(Instance* attached_instance, Location* relative_location, const Point &relative_point); + void setAttached(Instance* attached_instance, Location* relative_location); void setAttached(Instance* attached_instance, const Point &relative_point); void setAttached(Instance* attached_instance); - void setAttached(const Location &attached_location, const Point &relative_point); - void setAttached(const Location &attached_location); + void setAttached(Location* attached_location, const Point &relative_point); + void setAttached(Location* attached_location); void setAttached(const Point &attached_point); - void setRelative(const Location &relative_location); - void setRelative(const Location &relative_location, Point relative_point); + void setRelative(Location* relative_location); + void setRelative(Location* relative_location, Point relative_point); void setRelative(const Point &relative_point); Instance* getAttachedInstance();