From cc0b28e8e076e4f505fce04705b4abf024485fb7 Mon Sep 17 00:00:00 2001 From: eelke Date: Mon, 24 Dec 2018 11:33:24 +0100 Subject: [PATCH] No need for PgSPtrContainer to store weak pointer to the catalog when its parent already has a reference to the catalog. --- pglablib/catalog/PgContainer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pglablib/catalog/PgContainer.h b/pglablib/catalog/PgContainer.h index 82f8bb2..fb148a7 100644 --- a/pglablib/catalog/PgContainer.h +++ b/pglablib/catalog/PgContainer.h @@ -124,7 +124,7 @@ public: using t_Container = std::vector; ///< Do not assume it will stay a vector only expect bidirectional access explicit PgSPtrContainer(std::weak_ptr cat) - : m_catalog(cat) + : IPgContainer(cat) {} @@ -188,7 +188,6 @@ public: std::sort(m_container.begin(), m_container.end()); } protected: - std::weak_ptr m_catalog; t_Container m_container; /** Override the implementation for this function to implement loading of single row.