Changeset View
Changeset View
Standalone View
Standalone View
duchain/completioncodemodel.cpp
Show First 20 Lines • Show All 345 Lines • ▼ Show 20 Line(s) | 337 | { | |||
---|---|---|---|---|---|
346 | if(index) { | 346 | if(index) { | ||
347 | const CompletionCodeModelRepositoryItem* repositoryItem = d->m_repository.itemFromIndex(index); | 347 | const CompletionCodeModelRepositoryItem* repositoryItem = d->m_repository.itemFromIndex(index); | ||
348 | ifDebug( qCDebug(DUCHAIN) << "found index" << index << repositoryItem->itemsSize(); ) | 348 | ifDebug( qCDebug(DUCHAIN) << "found index" << index << repositoryItem->itemsSize(); ) | ||
349 | count = repositoryItem->itemsSize(); | 349 | count = repositoryItem->itemsSize(); | ||
350 | items = repositoryItem->items(); | 350 | items = repositoryItem->items(); | ||
351 | }else{ | 351 | }else{ | ||
352 | ifDebug( qCDebug(DUCHAIN) << "found no index"; ) | 352 | ifDebug( qCDebug(DUCHAIN) << "found no index"; ) | ||
353 | count = 0; | 353 | count = 0; | ||
354 | items = 0; | 354 | items = nullptr; | ||
355 | } | 355 | } | ||
356 | } | 356 | } | ||
357 | 357 | | |||
358 | CompletionCodeModel& CompletionCodeModel::self() { | 358 | CompletionCodeModel& CompletionCodeModel::self() { | ||
359 | static CompletionCodeModel ret; | 359 | static CompletionCodeModel ret; | ||
360 | return ret; | 360 | return ret; | ||
361 | } | 361 | } | ||
362 | 362 | | |||
363 | } | 363 | } | ||
364 | 364 | |