aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-03-16 18:19:04 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:15:18 -0300
commit0909185b8f45bd72618dfeb00b20bf4305087d1c (patch)
tree7c5273b5c8eb55268e5973124027317cfea079e4
parent68f5acc285c9c76cfe26c3bcc8cc74f0b91fc97d (diff)
Use buffer instead of uchar on TypeError messages.
-rw-r--r--generator/cppgenerator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index 52a2abff5..c012b9e9a 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -1475,6 +1475,9 @@ void CppGenerator::writeErrorSection(QTextStream& s, OverloadData& overloadData)
strArg = argType->fullName();
if (strArg == "PyUnicode")
strArg = "unicode";
+ else if (strArg == "uchar")
+ strArg = "buffer"; // This depends on an inject code to be true, but if it's not true
+ // the function wont work at all, so it must be true.
}
if (!arg->defaultValueExpression().isEmpty()) {
strArg += " = ";