Add comment and static keyword

This commit is contained in:
Magne Sjaastad 2023-10-13 09:57:42 +02:00
parent 0a40e24851
commit 6a8b72c0c5
2 changed files with 9 additions and 4 deletions

View File

@ -404,7 +404,8 @@ void PdmXmlObjectHandle::resolveReferencesRecursively( PdmObjectHandle*
}
//--------------------------------------------------------------------------------------------------
///
/// Never call resolveReferencesRecursively() from initAfterRead(), as the document is not fully imported and the
// resolving might fail. The object needs to be fully inserted into the document before resolving references.
//--------------------------------------------------------------------------------------------------
void PdmXmlObjectHandle::resolveReferencesRecursively(
std::vector<PdmFieldHandle*>* fieldWithFailingResolve /*= nullptr*/ )

View File

@ -54,7 +54,10 @@ public:
void initAfterReadRecursively() { initAfterReadRecursively( this->m_owner ); };
void setupBeforeSaveRecursively() { setupBeforeSaveRecursively( this->m_owner ); };
// Never call resolveReferencesRecursively() from initAfterRead(), as the document is not fully imported and the
// resolving might fail. The object needs to be fully inserted into the document before resolving references.
void resolveReferencesRecursively( std::vector<PdmFieldHandle*>* fieldWithFailingResolve = nullptr );
bool inheritsClassWithKeyword( const QString& testClassKeyword ) const;
const std::list<QString>& classInheritanceStack() const;
@ -74,9 +77,10 @@ protected: // Virtual
void registerClassKeyword( const QString& registerKeyword );
private:
void initAfterReadRecursively( PdmObjectHandle* object );
void setupBeforeSaveRecursively( PdmObjectHandle* object );
void resolveReferencesRecursively( PdmObjectHandle* object, std::vector<PdmFieldHandle*>* fieldWithFailingResolve );
static void initAfterReadRecursively( PdmObjectHandle* object );
static void setupBeforeSaveRecursively( PdmObjectHandle* object );
static void resolveReferencesRecursively( PdmObjectHandle* object,
std::vector<PdmFieldHandle*>* fieldWithFailingResolve );
private:
friend class PdmObjectHandle; // Only temporary for void PdmObject::addFieldNoDefault( ) accessing findField