From 0abd5d5d96f3ba079a618f856190d5db9e8b6a17 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 5 Apr 2020 18:30:08 +0200 Subject: [PATCH] Fixed some minor compiler warnings. --- src/db/db/dbEdgePairsDelegate.cc | 1 + src/db/db/dbEdgesDelegate.cc | 1 + src/db/db/dbLayout.cc | 2 ++ src/db/db/dbRegionDelegate.cc | 1 + src/tl/unit_tests/tlListTests.cc | 2 +- 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/db/db/dbEdgePairsDelegate.cc b/src/db/db/dbEdgePairsDelegate.cc index 47832e98e..d2b93d626 100644 --- a/src/db/db/dbEdgePairsDelegate.cc +++ b/src/db/db/dbEdgePairsDelegate.cc @@ -34,6 +34,7 @@ EdgePairsDelegate::EdgePairsDelegate () } EdgePairsDelegate::EdgePairsDelegate (const EdgePairsDelegate &other) + : tl::UniqueId () { operator= (other); } diff --git a/src/db/db/dbEdgesDelegate.cc b/src/db/db/dbEdgesDelegate.cc index 27d49dd3b..ea9c7ff45 100644 --- a/src/db/db/dbEdgesDelegate.cc +++ b/src/db/db/dbEdgesDelegate.cc @@ -37,6 +37,7 @@ EdgesDelegate::EdgesDelegate () } EdgesDelegate::EdgesDelegate (const EdgesDelegate &other) + : tl::UniqueId () { operator= (other); } diff --git a/src/db/db/dbLayout.cc b/src/db/db/dbLayout.cc index bc7fac89b..c82051019 100644 --- a/src/db/db/dbLayout.cc +++ b/src/db/db/dbLayout.cc @@ -290,6 +290,8 @@ Layout::Layout (const db::Layout &layout) : db::Object (layout), db::LayoutStateModel (), gsi::ObjectBase (), + tl::Object (), + tl::UniqueId (), m_cells_size (0), m_invalid (0), m_top_cells (0), diff --git a/src/db/db/dbRegionDelegate.cc b/src/db/db/dbRegionDelegate.cc index 887daa199..b52bbc06b 100644 --- a/src/db/db/dbRegionDelegate.cc +++ b/src/db/db/dbRegionDelegate.cc @@ -38,6 +38,7 @@ RegionDelegate::RegionDelegate () } RegionDelegate::RegionDelegate (const RegionDelegate &other) + : tl::UniqueId () { operator= (other); } diff --git a/src/tl/unit_tests/tlListTests.cc b/src/tl/unit_tests/tlListTests.cc index 8a1c45406..0c4b26a69 100644 --- a/src/tl/unit_tests/tlListTests.cc +++ b/src/tl/unit_tests/tlListTests.cc @@ -32,7 +32,7 @@ static size_t obj_count = 0; struct MyClass1 : public tl::list_node { MyClass1 (int _n) : n (_n) { ++obj_count; } - MyClass1 (const MyClass1 &other) : n (other.n) { ++obj_count; } + MyClass1 (const MyClass1 &other) : tl::list_node (), n (other.n) { ++obj_count; } ~MyClass1 () { --obj_count; } int n; bool operator== (const MyClass1 &other) const { return n == other.n; }