Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/duchain/classfunctiondeclaration.cpp
Show First 20 Lines • Show All 180 Lines • ▼ Show 20 Line(s) | 180 | if (ctx && ctx->type() == DUContext::Class && ctx->localScopeIdentifier().top().nameEquals(identifier())) | |||
---|---|---|---|---|---|
181 | return true; | 181 | return true; | ||
182 | return false; | 182 | return false; | ||
183 | } | 183 | } | ||
184 | 184 | | |||
185 | bool ClassFunctionDeclaration::isDestructor() const | 185 | bool ClassFunctionDeclaration::isDestructor() const | ||
186 | { | 186 | { | ||
187 | DUContext* ctx = context(); | 187 | DUContext* ctx = context(); | ||
188 | QString id = identifier().toString(); | 188 | QString id = identifier().toString(); | ||
189 | return ctx && ctx->type() == DUContext::Class && id.startsWith('~') && id.mid(1) == ctx->localScopeIdentifier().top().toString(); | 189 | return ctx && ctx->type() == DUContext::Class && id.startsWith(QLatin1Char('~')) && id.mid(1) == ctx->localScopeIdentifier().top().toString(); | ||
190 | } | 190 | } | ||
191 | 191 | | |||
192 | uint ClassFunctionDeclaration::additionalIdentity() const | 192 | uint ClassFunctionDeclaration::additionalIdentity() const | ||
193 | { | 193 | { | ||
194 | if(abstractType()) | 194 | if(abstractType()) | ||
195 | return abstractType()->hash(); | 195 | return abstractType()->hash(); | ||
196 | else | 196 | else | ||
197 | return 0; | 197 | return 0; | ||
Show All 23 Lines |