summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-02-16 17:48:45 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2011-02-16 17:53:07 -0200
commitdc2c701cd58efcd6559e3b1e510aa17b8942dd5f (patch)
tree78c8bb62a37120825f4615da8c9be23fbd851d7d
parentbccea1fb7ca73490c766694cc19f2ca9b43baebb (diff)
downloadshiboken-dc2c701cd58efcd6559e3b1e510aa17b8942dd5f.tar.gz
shiboken-dc2c701cd58efcd6559e3b1e510aa17b8942dd5f.tar.xz
shiboken-dc2c701cd58efcd6559e3b1e510aa17b8942dd5f.zip
Shows "unicode" instead of "PyUnicode" on error messages.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
-rw-r--r--generator/cppgenerator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index e6fdbda9..31357dc3 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -1489,6 +1489,8 @@ void CppGenerator::writeErrorSection(QTextStream& s, OverloadData& overloadData)
}
} else {
strArg = argType->fullName();
+ if (strArg == "PyUnicode")
+ strArg = "unicode";
}
if (!arg->defaultValueExpression().isEmpty()) {
strArg += " = ";