From bd66cd27ec26d9f3d08b6819f65d9bd730746271 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Tue, 25 Dec 2007 19:11:27 +0000 Subject: [PATCH] Support a is_const optional parameter in CppClassReturnValue --- pybindgen/cppclass.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pybindgen/cppclass.py b/pybindgen/cppclass.py index eabd308..c0c3607 100644 --- a/pybindgen/cppclass.py +++ b/pybindgen/cppclass.py @@ -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"""