diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-02-28 09:32:51 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-02-28 09:17:52 +0000 |
commit | eb18c9c45bfd6a835621549ca815b9de62f0d761 (patch) | |
tree | 832b77a92bc1be68ad4659a8fe293d3ed2e5f3b2 | |
parent | a0f5f68f02b97e8eb8f2b2de1fa57354f9f2c711 (diff) |
Revert "traverseOperatorFunction(): Do not strip argument off unary member operators"
This reverts commit a45049999520f3981c83964db4ae81c8123e48ee.
The change caused unaryoperator_test.py to fail, operator-(QPoint)
no longer worked.
Change-Id: I9707e6e89222fb9cfeb20689d168540dd45953de
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r-- | ApiExtractor/abstractmetabuilder.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ApiExtractor/abstractmetabuilder.cpp b/ApiExtractor/abstractmetabuilder.cpp index fbf62d386..8f7d32879 100644 --- a/ApiExtractor/abstractmetabuilder.cpp +++ b/ApiExtractor/abstractmetabuilder.cpp @@ -323,8 +323,7 @@ void AbstractMetaBuilderPrivate::traverseOperatorFunction(FunctionModelItem item AbstractMetaClass* oldCurrentClass = m_currentClass; m_currentClass = baseoperandClass; AbstractMetaFunction *metaFunction = traverseFunction(item); - // Strip first argument off "bool operator==(Foo lhs, Foo rhs); }" - if (metaFunction && !metaFunction->isInvalid() && metaFunction->arguments().size() > 1) { + if (metaFunction && !metaFunction->isInvalid()) { // Strip away first argument, since that is the containing object AbstractMetaArgumentList arguments = metaFunction->arguments(); if (firstArgumentIsSelf || unaryOperator) { |