aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2
blob: 23c1e502c90d0206a35ee42b77b7ab7792b36891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
tree eee554876fdf0ecd8fc76e218f1a8d9f9fb0dcfa
parent 5aea62a20195ff45d8f471609a135b9053547b5f
author Friedemann Kleint <Friedemann.Kleint@qt.io> 1486047322 +0100
committer Friedemann Kleint <Friedemann.Kleint@qt.io> 1486553762 +0000

AbstractMetaBuilder: Fix type check

AbstractMetaBuilderPrivate::fixReturnTypeOfConversionOperator()
is supposed to apply some changes to a conversion operator
like

class A {
   operator int() const;
};

The old C++ parser has a bug in that it creates this as a function
of return type "A" instead of "int" and this is also checked at the top
of the function.

Remove the check since that causes the function to not do anything
if the correct type "int" is passed.

Task-number: PYSIDE-323
Change-Id: I19e5b83599dccd5737209dd2e92064e80e8a506d
Reviewed-by: Christian Tismer <tismer@stackless.com>