diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-07-18 18:04:19 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:03 -0300 |
commit | 3e899a5e657b0f3a6bc38e788fc89c76c8962f47 (patch) | |
tree | f984416d173d7735ce05fe5a1a97d923cc7012e4 /generator/overloaddata.cpp | |
parent | 3016b0de40d93de2ca3eb690c1ae96529643f26a (diff) |
More convenience functions added. More refactoring. Code more readable.
ShibokenGenerator::isPointer()
ShibokenGenerator::isWrapperType()
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'generator/overloaddata.cpp')
-rw-r--r-- | generator/overloaddata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/overloaddata.cpp b/generator/overloaddata.cpp index 9dc353cee..57084558e 100644 --- a/generator/overloaddata.cpp +++ b/generator/overloaddata.cpp @@ -338,7 +338,7 @@ void OverloadData::sortNextOverloads() } else if (checkQVariant && targetTypeEntryName != "QVariant") { if (!graph.containsEdge(qvariantIndex, targetTypeId)) // Avoid cyclic dependency. graph.addEdge(targetTypeId, qvariantIndex); - } else if (checkQString && ov->argType()->indirections() > 0 + } else if (checkQString && ShibokenGenerator::isPointer(ov->argType()) && targetTypeEntryName != "QString" && targetTypeEntryName != "QByteArray" && (!checkPyObject || targetTypeId != pyobjectIndex)) { |