From bfed1b784edf939a738e5b666cce600eb45d2190 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 23 Mar 2007 17:37:49 +0000 Subject: [PATCH] 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." --- src/osgIntrospection/Type.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgIntrospection/Type.cpp b/src/osgIntrospection/Type.cpp index 0926ae501..61c6402eb 100644 --- a/src/osgIntrospection/Type.cpp +++ b/src/osgIntrospection/Type.cpp @@ -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); } }