Browse Source

Use Object pointer instead of const reference.

pull/279/head
Vladimír Vondruš 16 years ago
parent
commit
4902170060
  1. 6
      src/Object.h

6
src/Object.h

@ -97,9 +97,9 @@ class Object {
* Sets parent and transformation from another object, so they will * Sets parent and transformation from another object, so they will
* appear in the same place. * appear in the same place.
*/ */
inline void setTransformationFrom(const Object& another) { inline void setTransformationFrom(Object* another) {
setParent(another.parent()); setParent(another->parent());
setTransformation(another.transformation()); setTransformation(another->transformation());
} }
/** /**

Loading…
Cancel
Save