From a76f4015c65e1c3325abc015d68f8611ad6c13ba Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 15 Jun 2004 01:09:55 +0000 Subject: [PATCH] return concrete NodePath objects instead of references --- panda/src/collide/collisionEntry.I | 4 ++-- panda/src/collide/collisionEntry.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/panda/src/collide/collisionEntry.I b/panda/src/collide/collisionEntry.I index 483e0f9f7e..660a75b57b 100644 --- a/panda/src/collide/collisionEntry.I +++ b/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; } diff --git a/panda/src/collide/collisionEntry.h b/panda/src/collide/collisionEntry.h index b3e379d868..05787a9446 100644 --- a/panda/src/collide/collisionEntry.h +++ b/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;