diff --git a/dtool/src/dtoolbase/typeRegistry.cxx b/dtool/src/dtoolbase/typeRegistry.cxx index c944887d1c..e1299f600d 100644 --- a/dtool/src/dtoolbase/typeRegistry.cxx +++ b/dtool/src/dtoolbase/typeRegistry.cxx @@ -728,9 +728,9 @@ find_type_by_id(int id) const { // Access: Private /////////////////////////////////////////////////////////////////// extern "C" int -get_best_parent_from_Set(int id, const std::set &set) { +get_best_parent_from_Set(int id, const std::set &this_set) { // most common case.. - if (set.find(id) != set.end()) { + if (this_set.find(id) != this_set.end()) { return id; } @@ -739,6 +739,6 @@ get_best_parent_from_Set(int id, const std::set &set) { return -1; } - return th.get_best_parent_from_Set(set); + return th.get_best_parent_from_Set(this_set); } diff --git a/dtool/src/dtoolbase/typeRegistry.h b/dtool/src/dtoolbase/typeRegistry.h index 768cf0e7a0..a11d550943 100644 --- a/dtool/src/dtoolbase/typeRegistry.h +++ b/dtool/src/dtoolbase/typeRegistry.h @@ -119,7 +119,7 @@ private: /////////////////////////////////////////// // Helper function to allow for "C" interaction into the type system -extern "C" EXPCL_DTOOL int get_best_parent_from_Set(int id, const std::set &set); +extern "C" EXPCL_DTOOL int get_best_parent_from_Set(int id, const std::set &this_set); #include "typeRegistry.I"