| 86 | } |
| 87 | |
| 88 | QString ReferenceType::toString() const |
| 89 | { |
| 90 | AbstractType::Ptr base = baseType(); |
| 91 | QString baseString = (base ? base->toString() : QStringLiteral("<notype>")); |
| 92 | const QLatin1String ampersands = d_func()->m_isRValue ? QLatin1String("&&") : QLatin1String("&"); |
| 93 | if (base.dynamicCast<IntegralType>() || base.dynamicCast<StructureType>()) |
| 94 | return AbstractType::toString(false) + baseString + ampersands; |
| 95 | else |
| 96 | return baseString + AbstractType::toString(true) + ampersands; |
| 97 | } |
| 98 | |
| 99 | AbstractType::WhichType ReferenceType::whichType() const |
| 100 | { |