Explorar o código

Fix compiler warning. "const int" return type makes no sense

rdb %!s(int64=11) %!d(string=hai) anos
pai
achega
963186e1ec

+ 4 - 5
panda/src/bullet/bulletContactResult.I

@@ -51,7 +51,7 @@ get_manifold_point() {
 //       Access: Published
 //  Description:
 ////////////////////////////////////////////////////////////////////
-INLINE const int BulletContact::
+INLINE int BulletContact::
 get_idx0() const {
 
   return _idx0;
@@ -62,7 +62,7 @@ get_idx0() const {
 //       Access: Published
 //  Description:
 ////////////////////////////////////////////////////////////////////
-INLINE const int BulletContact::
+INLINE int BulletContact::
 get_idx1() const {
 
   return _idx1;
@@ -73,7 +73,7 @@ get_idx1() const {
 //       Access: Published
 //  Description:
 ////////////////////////////////////////////////////////////////////
-INLINE const int BulletContact::
+INLINE int BulletContact::
 get_part_id0() const {
 
   return _part_id0;
@@ -84,7 +84,7 @@ get_part_id0() const {
 //       Access: Published
 //  Description:
 ////////////////////////////////////////////////////////////////////
-INLINE const int BulletContact::
+INLINE int BulletContact::
 get_part_id1() const {
 
   return _part_id1;
@@ -112,4 +112,3 @@ get_contact(int idx) {
   nassertr(idx >= 0 && idx < (int)_contacts.size(), _empty);
   return _contacts[idx];
 }
-

+ 6 - 6
panda/src/bullet/bulletContactResult.h

@@ -24,7 +24,7 @@
 
 ////////////////////////////////////////////////////////////////////
 //       Class : BulletContact
-// Description : 
+// Description :
 ////////////////////////////////////////////////////////////////////
 struct EXPCL_PANDABULLET BulletContact {
 
@@ -36,10 +36,10 @@ PUBLISHED:
   INLINE BulletManifoldPoint &get_manifold_point();
   INLINE PandaNode *get_node0() const;
   INLINE PandaNode *get_node1() const;
-  INLINE const int get_idx0() const;
-  INLINE const int get_idx1() const;
-  INLINE const int get_part_id0() const;
-  INLINE const int get_part_id1() const;
+  INLINE int get_idx0() const;
+  INLINE int get_idx1() const;
+  INLINE int get_part_id0() const;
+  INLINE int get_part_id1() const;
 
 private:
   static btManifoldPoint _empty;
@@ -59,7 +59,7 @@ private:
 
 ////////////////////////////////////////////////////////////////////
 //       Class : BulletContactResult
-// Description : 
+// Description :
 ////////////////////////////////////////////////////////////////////
 struct EXPCL_PANDABULLET BulletContactResult : public btCollisionWorld::ContactResultCallback {