diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-04-15 16:39:33 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:15:21 -0300 |
commit | 04d571f872a8cada531646f15b2d4440b20d0d53 (patch) | |
tree | fda05f186dd0b2c758699003b77f75cb560eea22 /tests/libsample | |
parent | 4936232cec98614069cf72b55497c50b450a71e8 (diff) |
Overload decisor was improved to consider PySequences on modified function signatures.
Unit tests were added as usual.
Reviewer: Hugo Parente <hugo.lima@openbossa.org>
Renato Araujo <renato.filho@openbossa.org>
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/overload.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/libsample/overload.h b/tests/libsample/overload.h index a0682fe18..bbac9afa4 100644 --- a/tests/libsample/overload.h +++ b/tests/libsample/overload.h @@ -106,6 +106,14 @@ public: // Another simpler variant of the one similar to QPainter::drawText(...) FunctionEnum drawText4(int a0, int a1, int a2) { return Function0; } FunctionEnum drawText4(int a0, int a1, int a2, int a3, int a4) { return Function1; } + + FunctionEnum acceptSequence() { return Function0; } + FunctionEnum acceptSequence(int a0, int a1) { return Function1; } + FunctionEnum acceptSequence(const Str& a0, ParamEnum a1 = Param0) { return Function2; } + FunctionEnum acceptSequence(const Size& a0) { return Function3; } + // The type must be changed to PySequence. + FunctionEnum acceptSequence(const char* const a0[]) { return Function4; } + FunctionEnum acceptSequence(void* a0) { return Function5; } }; class LIBSAMPLE_API Overload2 : public Overload |