From f49fa646fc117cf4faf0a4270cdbc93341208729 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Tue, 13 Dec 2022 21:54:00 +0100 Subject: [PATCH] Patched PR with leaner solution --- src/db/db/dbLayout.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/db/db/dbLayout.h b/src/db/db/dbLayout.h index 222860458..79337f3b0 100644 --- a/src/db/db/dbLayout.h +++ b/src/db/db/dbLayout.h @@ -192,13 +192,8 @@ public: * @brief Default constructor */ cell_list_const_iterator (cell_list_iterator iter) - { - if (iter == cell_list_iterator()) { - mp_cell = nullptr; - } else { - mp_cell = &(*iter); - } - } + : mp_cell (iter.operator-> ()) + { } /** * @brief Equality