From Mike Wittman, "This change fixes a couple bugs in the osgIntrospection protected function support. I missed adding the protected/public specifier on a couple recursive invocations, so those functions are not currently returning protected functions for base classes when they should."

This commit is contained in:
Robert Osfield
2007-03-23 17:37:49 +00:00
parent 37f4740c45
commit bfed1b784e

View File

@@ -224,7 +224,7 @@ void Type::getAllMethods(MethodInfoList& methods, FunctionCategory category) con
std::copy(input_methods.begin(), input_methods.end(), std::back_inserter(methods));
for (TypeList::const_iterator i=_base.begin(); i!=_base.end(); ++i)
{
(*i)->getAllMethods(methods);
(*i)->getAllMethods(methods, category);
}
}
@@ -234,7 +234,7 @@ void Type::getMethodsMap(MethodInfoMap& methods, FunctionCategory category) cons
methods[this] = (category == PUBLIC_FUNCTIONS ? _methods : _protected_methods);
for (TypeList::const_iterator i=_base.begin(); i!=_base.end(); ++i)
{
(*i)->getMethodsMap(methods);
(*i)->getMethodsMap(methods, category);
}
}