Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/serialization/itemrepository.h
Show First 20 Lines • Show All 563 Lines • ▼ Show 20 Line(s) | 563 | if(markForReferenceCounting) | |||
---|---|---|---|---|---|
564 | enableDUChainReferenceCounting(m_data, dataSize()); | 564 | enableDUChainReferenceCounting(m_data, dataSize()); | ||
565 | 565 | | |||
566 | ItemRequest::destroy(item, repository); | 566 | ItemRequest::destroy(item, repository); | ||
567 | 567 | | |||
568 | if(markForReferenceCounting) | 568 | if(markForReferenceCounting) | ||
569 | disableDUChainReferenceCounting(m_data); | 569 | disableDUChainReferenceCounting(m_data); | ||
570 | 570 | | |||
571 | #ifndef QT_NO_DEBUG | 571 | #ifndef QT_NO_DEBUG | ||
572 | #if defined(__GNUC__) && !defined(__INTEL_COMPILER) && (((__GNUC__ * 100) + __GNUC_MINOR__) >= 800) | ||||
573 | #pragma GCC diagnostic push | ||||
574 | #pragma GCC diagnostic ignored "-Wclass-memaccess" | ||||
572 | memset(item, 0, size); //For debugging, so we notice the data is wrong | 575 | memset(item, 0, size); //For debugging, so we notice the data is wrong | ||
576 | #pragma GCC diagnostic pop | ||||
577 | #endif | ||||
573 | #endif | 578 | #endif | ||
574 | 579 | | |||
575 | if(m_monsterBucketExtent) { | 580 | if(m_monsterBucketExtent) { | ||
576 | ///This is a monster-bucket. Make it completely empty again. | 581 | ///This is a monster-bucket. Make it completely empty again. | ||
577 | Q_ASSERT(!m_available); | 582 | Q_ASSERT(!m_available); | ||
578 | m_available = ItemRepositoryBucketSize; | 583 | m_available = ItemRepositoryBucketSize; | ||
579 | 584 | | |||
580 | //Items are always inserted into monster-buckets at a fixed position | 585 | //Items are always inserted into monster-buckets at a fixed position | ||
▲ Show 20 Lines • Show All 1674 Lines • Show Last 20 Lines |