From 6226cfe1fcbe33175e62950df656ff144e5276c0 Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Mon, 2 Aug 2010 11:57:33 +0200
Subject: [PATCH] Compile.

---
 src/tools/cplusplus/generate-ast.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/tools/cplusplus/generate-ast.cpp b/src/tools/cplusplus/generate-ast.cpp
index bbde757934c..f4cc3ab678b 100644
--- a/src/tools/cplusplus/generate-ast.cpp
+++ b/src/tools/cplusplus/generate-ast.cpp
@@ -1112,10 +1112,8 @@ void generateAST_cpp(const Snapshot &snapshot, const QDir &cplusplusDir)
     for (DeclarationListAST *iter = xUnit->declaration_list; iter; iter = iter->next) {
         if (FunctionDefinitionAST *funDef = iter->value->asFunctionDefinition()) {
             if (const QualifiedNameId *qName = funDef->symbol->name()->asQualifiedNameId()) {
-                if (qName->nameCount() != 2)
-                    continue;
-                const QString className = oo(qName->nameAt(0));
-                const QString methodName = oo(qName->nameAt(1));
+                const QString className = oo(qName->base());
+                const QString methodName = oo(qName->name());
 
                 QTextCursor cursor(&cpp_document);
 
-- 
GitLab