mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
AppFwk: Added comments
This commit is contained in:
parent
5806dc24ab
commit
6e25fe2569
@ -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));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user