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

« back to all changes in this revision

Viewing changes to duchain/declarations/functiondeclaration.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:
63
63
    return new FunctionDeclaration(*this);
64
64
}
65
65
 
66
 
QString FunctionDeclaration::prettyName() const
 
66
KDevelop::IndexedString FunctionDeclaration::prettyName() const
67
67
{
68
 
    return d_func()->prettyName.str();
 
68
    return d_func()->prettyName;
69
69
}
70
70
 
71
 
void FunctionDeclaration::setPrettyName( const QString& name )
 
71
void FunctionDeclaration::setPrettyName( const KDevelop::IndexedString& name )
72
72
{
73
 
    d_func_dynamic()->prettyName = KDevelop::IndexedString(name);
 
73
    d_func_dynamic()->prettyName = name;
74
74
}
75
75
 
76
76
QString FunctionDeclaration::toString() const
82
82
  Q_ASSERT(function);
83
83
 
84
84
  return QString("%1 %2 %3").arg(function->partToString( KDevelop::FunctionType::SignatureReturn ))
85
 
                            .arg(prettyName())
 
85
                            .arg(prettyName().str())
86
86
                            .arg(function->partToString( KDevelop::FunctionType::SignatureArguments ));
87
87
}
88
88