diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2010-09-17 20:13:58 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:05:59 -0300 |
commit | 74c9bf7e64d12a946c9b96d9674926323622f1f1 (patch) | |
tree | 77e340ecdfbf90062fe40b2d97a8727b3073176e /tests/libsample | |
parent | 3ce6cdd1b6868ae8494c0a89bef4db85988758b4 (diff) |
Fix OverloadData::isSingleArgument
Now returning true *only* when exactly all overloads
accept exactly 1 argument.
Fixes compilation of QAudioInput and QAudioOutput from
QtMultimedia. Both have start() and start(QIODevice*) overloads,
and the previous code was generating 'arg' instead of 'pyargs'.
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/overload.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libsample/overload.h b/tests/libsample/overload.h index 739c40656..36b30f2be 100644 --- a/tests/libsample/overload.h +++ b/tests/libsample/overload.h @@ -57,6 +57,9 @@ public: inline int intOverloads(const Point& p, double d) { return 1; } inline int intOverloads(int i, int i2) { return 2; } inline int intOverloads(int i, int removedArg, double d) { return 3; } + + void singleOverload(Point* x) {} + Point* singleOverload() {return new Point();} }; #endif // OVERLOAD_H |