Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/classmodel/classmodelnode.cpp
Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Line(s) | 293 | { | |||
---|---|---|---|---|---|
294 | // Append the argument signature to the identifier's name (which is what the displayName is. | 294 | // Append the argument signature to the identifier's name (which is what the displayName is. | ||
295 | if (FunctionType::Ptr type = a_decl->type<FunctionType>()) | 295 | if (FunctionType::Ptr type = a_decl->type<FunctionType>()) | ||
296 | m_displayName += type->partToString(FunctionType::SignatureArguments); | 296 | m_displayName += type->partToString(FunctionType::SignatureArguments); | ||
297 | 297 | | |||
298 | // Add special values for ctor / dtor to sort first | 298 | // Add special values for ctor / dtor to sort first | ||
299 | ClassFunctionDeclaration* classmember = dynamic_cast<ClassFunctionDeclaration*>(a_decl); | 299 | ClassFunctionDeclaration* classmember = dynamic_cast<ClassFunctionDeclaration*>(a_decl); | ||
300 | if ( classmember ) { | 300 | if ( classmember ) { | ||
301 | if ( classmember->isConstructor() || classmember->isDestructor() ) | 301 | if ( classmember->isConstructor() || classmember->isDestructor() ) | ||
302 | m_sortableString = '0' + m_displayName; | 302 | m_sortableString = QLatin1Char('0') + m_displayName; | ||
303 | else | 303 | else | ||
304 | m_sortableString = '1' + m_displayName; | 304 | m_sortableString = QLatin1Char('1') + m_displayName; | ||
305 | } | 305 | } | ||
306 | else { | 306 | else { | ||
307 | m_sortableString = m_displayName; | 307 | m_sortableString = m_displayName; | ||
308 | } | 308 | } | ||
309 | } | 309 | } | ||
310 | 310 | | |||
311 | ////////////////////////////////////////////////////////////////////////////// | 311 | ////////////////////////////////////////////////////////////////////////////// | ||
312 | ////////////////////////////////////////////////////////////////////////////// | 312 | ////////////////////////////////////////////////////////////////////////////// | ||
▲ Show 20 Lines • Show All 297 Lines • Show Last 20 Lines |