Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/duchain/instantiationinformation.cpp
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | |||||
61 | 61 | | |||
62 | void InstantiationInformation::addTemplateParameter(const KDevelop::AbstractType::Ptr& type) { | 62 | void InstantiationInformation::addTemplateParameter(const KDevelop::AbstractType::Ptr& type) { | ||
63 | templateParametersList().append(IndexedType(type)); | 63 | templateParametersList().append(IndexedType(type)); | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | QString InstantiationInformation::toString(bool local) const { | 66 | QString InstantiationInformation::toString(bool local) const { | ||
67 | QString ret; | 67 | QString ret; | ||
68 | if(previousInstantiationInformation.index() && !local) | 68 | if(previousInstantiationInformation.index() && !local) | ||
69 | ret = previousInstantiationInformation.information().toString() + "::"; | 69 | ret = previousInstantiationInformation.information().toString() + QLatin1String("::"); | ||
70 | ret += '<'; | 70 | ret += QLatin1Char('<'); | ||
71 | for(uint a = 0; a < templateParametersSize(); ++a) { | 71 | for(uint a = 0; a < templateParametersSize(); ++a) { | ||
72 | if(a) | 72 | if(a) | ||
73 | ret += QLatin1String(", "); | 73 | ret += QLatin1String(", "); | ||
74 | if(templateParameters()[a].abstractType()) | 74 | if(templateParameters()[a].abstractType()) | ||
75 | ret += templateParameters()[a].abstractType()->toString(); | 75 | ret += templateParameters()[a].abstractType()->toString(); | ||
76 | } | 76 | } | ||
77 | ret += '>'; | 77 | ret += QLatin1Char('>'); | ||
78 | return ret; | 78 | return ret; | ||
79 | } | 79 | } | ||
80 | 80 | | |||
81 | InstantiationInformation::InstantiationInformation() : m_refCount(0) { | 81 | InstantiationInformation::InstantiationInformation() : m_refCount(0) { | ||
82 | initializeAppendedLists(); | 82 | initializeAppendedLists(); | ||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | InstantiationInformation::InstantiationInformation(const InstantiationInformation& rhs, bool dynamic) : previousInstantiationInformation(rhs.previousInstantiationInformation), m_refCount(0) { | 85 | InstantiationInformation::InstantiationInformation(const InstantiationInformation& rhs, bool dynamic) : previousInstantiationInformation(rhs.previousInstantiationInformation), m_refCount(0) { | ||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |