Fixed some minor compiler warnings.

This commit is contained in:
Matthias Koefferlein 2020-04-05 18:30:08 +02:00
parent 27109312cf
commit 0abd5d5d96
5 changed files with 6 additions and 1 deletions

View File

@ -34,6 +34,7 @@ EdgePairsDelegate::EdgePairsDelegate ()
}
EdgePairsDelegate::EdgePairsDelegate (const EdgePairsDelegate &other)
: tl::UniqueId ()
{
operator= (other);
}

View File

@ -37,6 +37,7 @@ EdgesDelegate::EdgesDelegate ()
}
EdgesDelegate::EdgesDelegate (const EdgesDelegate &other)
: tl::UniqueId ()
{
operator= (other);
}

View File

@ -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),

View File

@ -38,6 +38,7 @@ RegionDelegate::RegionDelegate ()
}
RegionDelegate::RegionDelegate (const RegionDelegate &other)
: tl::UniqueId ()
{
operator= (other);
}

View File

@ -32,7 +32,7 @@ static size_t obj_count = 0;
struct MyClass1 : public tl::list_node<MyClass1>
{
MyClass1 (int _n) : n (_n) { ++obj_count; }
MyClass1 (const MyClass1 &other) : n (other.n) { ++obj_count; }
MyClass1 (const MyClass1 &other) : tl::list_node<MyClass1> (), n (other.n) { ++obj_count; }
~MyClass1 () { --obj_count; }
int n;
bool operator== (const MyClass1 &other) const { return n == other.n; }