diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-07-24 14:23:46 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:04 -0300 |
commit | 922a9a1f7d4cb6a1387cfb0aafe8f41e0c71b42a (patch) | |
tree | cfb4c9b3817cf573de67d1042bd76508151654e1 /generator | |
parent | c3144c3fe91a6d069d849eecd46ead0828175b58 (diff) |
Fixes ShibokenGenerator::isCString(type).
Diffstat (limited to 'generator')
-rw-r--r-- | generator/shibokengenerator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generator/shibokengenerator.cpp b/generator/shibokengenerator.cpp index 9e0706698..c33a4221b 100644 --- a/generator/shibokengenerator.cpp +++ b/generator/shibokengenerator.cpp @@ -786,7 +786,9 @@ bool ShibokenGenerator::isPyInt(const AbstractMetaType* type) bool ShibokenGenerator::isCString(const AbstractMetaType* type) { - return type->isNativePointer() && type->name() == "char"; + return type->isNativePointer() + && type->indirections() == 1 + && type->name() == "char"; } bool ShibokenGenerator::isPairContainer(const AbstractMetaType* type) |