aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sources/shiboken2/generator/shiboken2/cppgenerator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
index 575e1364c..0c5da737c 100644
--- a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
+++ b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
@@ -5345,6 +5345,8 @@ void CppGenerator::writeGetattroFunction(QTextStream &s, GeneratorContext &conte
}
s << INDENT << "PyErr_Clear();\n";
+ // This generates the code which dispatches access to member functions
+ // and fields from the smart pointer to its pointee.
s << INDENT << "// Try to find the 'name' attribute, by retrieving the PyObject for "
"the corresponding C++ object held by the smart pointer.\n";
s << INDENT << "if (auto rawObj = PyObject_CallMethod(self, "