diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-03-16 18:19:04 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:15:18 -0300 |
commit | 0909185b8f45bd72618dfeb00b20bf4305087d1c (patch) | |
tree | 7c5273b5c8eb55268e5973124027317cfea079e4 /generator/cppgenerator.cpp | |
parent | 68f5acc285c9c76cfe26c3bcc8cc74f0b91fc97d (diff) |
Use buffer instead of uchar on TypeError messages.
Diffstat (limited to 'generator/cppgenerator.cpp')
-rw-r--r-- | generator/cppgenerator.cpp | 3 |
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 += " = "; |