From da0ce894660836b1b311e529125a339645a869d4 Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Fri, 30 Oct 2009 19:20:22 -0200 Subject: 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 --- typesystem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3