Support a is_const optional parameter in CppClassReturnValue

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2007-12-25 19:11:27 +00:00
1 parent 312df1d49b
commit bd66cd27ec
1 file changed
+2 -1
+2 -1
View File
@@ -1144,11 +1144,12 @@ class CppClassReturnValue(CppClassReturnValueBase):
cpp_class = CppClass('dummy') # CppClass instance
REQUIRES_ASSIGNMENT_CONSTRUCTOR = True
def __init__(self, ctype):
def __init__(self, ctype, is_const=False):
"""override to fix the ctype parameter with namespace information"""
if ctype == self.cpp_class.name:
ctype = self.cpp_class.full_name
super(CppClassReturnValue, self).__init__(ctype)
self.is_const = is_const
def get_c_error_return(self): # only used in reverse wrappers
"""See ReturnValue.get_c_error_return"""