Browse Source

return concrete NodePath objects instead of references

David Rose 21 years ago
parent
commit
a76f4015c6
2 changed files with 4 additions and 4 deletions
  1. 2 2
      panda/src/collide/collisionEntry.I
  2. 2 2
      panda/src/collide/collisionEntry.h

+ 2 - 2
panda/src/collide/collisionEntry.I

@@ -104,7 +104,7 @@ get_into_node() const {
 //               that has been added to a CollisionTraverser via
 //               add_collider().
 ////////////////////////////////////////////////////////////////////
-INLINE const NodePath &CollisionEntry::
+INLINE NodePath CollisionEntry::
 get_from_node_path() const {
   return _from_node_path;
 }
@@ -120,7 +120,7 @@ get_from_node_path() const {
 //               resolve the particular instance of the node, if there
 //               is more than one.
 ////////////////////////////////////////////////////////////////////
-INLINE const NodePath &CollisionEntry::
+INLINE NodePath CollisionEntry::
 get_into_node_path() const {
   return _into_node_path;
 }

+ 2 - 2
panda/src/collide/collisionEntry.h

@@ -60,8 +60,8 @@ PUBLISHED:
 
   INLINE CollisionNode *get_from_node() const;
   INLINE PandaNode *get_into_node() const;
-  INLINE const NodePath &get_from_node_path() const;
-  INLINE const NodePath &get_into_node_path() const;
+  INLINE NodePath get_from_node_path() const;
+  INLINE NodePath get_into_node_path() const;
 
   INLINE bool get_respect_prev_transform() const;