From 3f988be052ae12b5c56bced56fb97a8eb460fba7 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 28 Oct 2000 21:31:06 +0000 Subject: [PATCH] Add missing const qualifier [SVN r8046] --- functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.cpp b/functions.cpp index de9de20e..912cd087 100644 --- a/functions.cpp +++ b/functions.cpp @@ -152,7 +152,7 @@ BoundFunction::call(PyObject* args, PyObject* keywords) const return PyEval_CallObjectWithKeywords(m_unbound_function.get(), all_arguments.get(), keywords); } -PyObject* BoundFunction::getattr(const char* name) +PyObject* BoundFunction::getattr(const char* name) const { return PyObject_GetAttrString(m_unbound_function.get(), const_cast(name)); }