diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-12-28 16:38:22 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-07 16:03:40 -0200 |
commit | 8dded56b403fd979f0b567666017dc12f7c1a9b6 (patch) | |
tree | 4fd6f0a769132021fed7cdfbaaad6702b9c04db9 /typesystem.cpp | |
parent | 11679b1008b9443ee817e382731ea9049eb2fe64 (diff) |
Added function can be tagged as static methods.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'typesystem.cpp')
-rw-r--r-- | typesystem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/typesystem.cpp b/typesystem.cpp index 7c58dab56..f6c6d7e50 100644 --- a/typesystem.cpp +++ b/typesystem.cpp @@ -846,6 +846,7 @@ bool Handler::startElement(const QString &, const QString &n, attributes["signature"] = QString(); attributes["return-type"] = QString("void"); attributes["access"] = QString("public"); + attributes["static"] = QString("no"); break; case StackElement::ModifyFunction: attributes["signature"] = QString(); @@ -1300,6 +1301,7 @@ bool Handler::startElement(const QString &, const QString &n, } AddedFunction func(signature, attributes["return-type"]); + func.setStatic(attributes["static"] == "yes"); if (!signature.contains("(")) signature += "()"; m_currentSignature = signature; |