No need for PgSPtrContainer to store weak pointer to the catalog when its parent already has a reference to the catalog.
This commit is contained in:
parent
3f337b2cca
commit
cc0b28e8e0
1 changed files with 1 additions and 2 deletions
|
|
@ -124,7 +124,7 @@ public:
|
|||
using t_Container = std::vector<t_Elem>; ///< Do not assume it will stay a vector only expect bidirectional access
|
||||
|
||||
explicit PgSPtrContainer(std::weak_ptr<PgDatabaseCatalog> cat)
|
||||
: m_catalog(cat)
|
||||
: IPgContainer(cat)
|
||||
{}
|
||||
|
||||
|
||||
|
|
@ -188,7 +188,6 @@ public:
|
|||
std::sort(m_container.begin(), m_container.end());
|
||||
}
|
||||
protected:
|
||||
std::weak_ptr<PgDatabaseCatalog> m_catalog;
|
||||
t_Container m_container;
|
||||
|
||||
/** Override the implementation for this function to implement loading of single row.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue