~ubuntu-branches/ubuntu/utopic/kdevelop-php/utopic

« back to all changes in this revision

Viewing changes to duchain/declarations/classmethoddeclaration.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2010-03-14 10:19:34 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100314101934-d24i8t1niai087ul
Tags: 1.0.0~beta4-1
New upstream release. (Closes: #573811)

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
    return new ClassMethodDeclaration(*this);
75
75
}
76
76
 
77
 
QString ClassMethodDeclaration::prettyName() const
 
77
KDevelop::IndexedString ClassMethodDeclaration::prettyName() const
78
78
{
79
 
    return d_func()->prettyName.str();
 
79
    return d_func()->prettyName;
80
80
}
81
81
 
82
 
void ClassMethodDeclaration::setPrettyName( const QString& name )
 
82
void ClassMethodDeclaration::setPrettyName( const KDevelop::IndexedString& name )
83
83
{
84
 
    d_func_dynamic()->prettyName = KDevelop::IndexedString(name);
 
84
    d_func_dynamic()->prettyName = name;
85
85
}
86
86
 
87
87
QString ClassMethodDeclaration::toString() const
92
92
    TypePtr<FunctionType> function = type<FunctionType>();
93
93
    if(function) {
94
94
        return QString("%1 %2 %3").arg(function->partToString( FunctionType::SignatureReturn ))
95
 
                                  .arg(prettyName())
 
95
                                  .arg(prettyName().str())
96
96
                                  .arg(function->partToString( FunctionType::SignatureArguments ));
97
97
    } else {
98
98
        QString type = abstractType() ? abstractType()->toString() : QString("<notype>");
99
99
        kDebug(9505) << "A function has a bad type attached:" << type;
100
 
        return QString("invalid member-function %1 type %2").arg(prettyName()).arg(type);
 
100
        return QString("invalid member-function %1 type %2").arg(prettyName().str()).arg(type);
101
101
    }
102
102
}
103
103