~ubuntu-branches/ubuntu/quantal/kdevelop-php/quantal-proposed

« back to all changes in this revision

Viewing changes to duchain/builders/typebuilder.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Rohan Garg
  • Date: 2011-07-30 22:17:40 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110730221740-xinifwwz87dk2lfc
Tags: 1.2.3-0ubuntu1
* New upstream release
  - Bump kdevplatform-dev to 1.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
502
502
        bool foundType = false;
503
503
        if (StructureType::Ptr type = StructureType::Ptr::dynamicCast(v.result().type())) {
504
504
            ClassDeclaration *classDec = dynamic_cast<ClassDeclaration*>(type->declaration(currentContext()->topContext()));
 
505
            if (!classDec) {
 
506
                ///FIXME: this is just a hack for https://bugs.kde.org/show_bug.cgi?id=269369
 
507
                ///       a proper fix needs full fledged two-pass, i.e. get rid of PreDeclarationBuilder
 
508
                // 0 == global lookup and the delcaration is found again...
 
509
                classDec = dynamic_cast<ClassDeclaration*>(type->declaration(0));
 
510
            }
505
511
            Q_ASSERT(classDec);
506
512
            /// Qualified identifier for 'iterator'
507
513
            static const QualifiedIdentifier iteratorQId("iterator");