diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-10-30 19:20:22 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-03 18:15:52 -0200 |
commit | da0ce894660836b1b311e529125a339645a869d4 (patch) | |
tree | 799af9f9f72722e7875ae816624e1b2b1d5f46d5 /typesystem.cpp | |
parent | e0a5b65fd9213f77eabf95fcd25b591e3d7966c0 (diff) |
Add "()" to the function signature of functions without parenteses.
Without this the function without parenteses will be like an alien to
all others APIExtractor functions.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'typesystem.cpp')
-rw-r--r-- | typesystem.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/typesystem.cpp b/typesystem.cpp index 6d9cbe918..748de04fb 100644 --- a/typesystem.cpp +++ b/typesystem.cpp @@ -1285,6 +1285,8 @@ bool Handler::startElement(const QString &, const QString &n, } AddedFunction func(signature, attributes["return-type"]); + if (!signature.contains("(")) + signature += "()"; m_currentSignature = signature; QString access = attributes["access"].toLower(); @@ -1302,7 +1304,7 @@ bool Handler::startElement(const QString &, const QString &n, m_addedFunctions << func; FunctionModification mod; - mod.signature = signature; + mod.signature = m_currentSignature; m_functionMods << mod; } break; |