AppFwk: Added comments

This commit is contained in:
astridkbjorke 2016-12-19 10:05:57 +01:00
parent 5806dc24ab
commit 6e25fe2569

View File

@ -94,6 +94,9 @@ bool PdmUiOrdering::contains(const PdmUiItem* item)
void PdmUiOrdering::add(const PdmFieldHandle* field) void PdmUiOrdering::add(const PdmFieldHandle* field)
{ {
PdmUiFieldHandle* uiItem = const_cast<PdmFieldHandle*>(field)->uiCapability(); PdmUiFieldHandle* uiItem = const_cast<PdmFieldHandle*>(field)->uiCapability();
// No uiItem can be caused by missing initialization using CAF_PDM_InitField
assert(uiItem); assert(uiItem);
assert(!this->contains(uiItem)); assert(!this->contains(uiItem));
@ -106,6 +109,9 @@ void PdmUiOrdering::add(const PdmFieldHandle* field)
void PdmUiOrdering::add(const PdmObjectHandle* obj) void PdmUiOrdering::add(const PdmObjectHandle* obj)
{ {
PdmUiObjectHandle* uiItem = uiObj(const_cast<PdmObjectHandle*>(obj)); PdmUiObjectHandle* uiItem = uiObj(const_cast<PdmObjectHandle*>(obj));
// No uiItem can be caused by missing initialization using CAF_PDM_InitObject
assert(uiItem); assert(uiItem);
assert(!this->contains(uiItem)); assert(!this->contains(uiItem));