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:
eelke 2018-12-24 11:33:24 +01:00
parent 3f337b2cca
commit cc0b28e8e0

View file

@ -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.