Commit fb573579 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Add explicit operator= for -Wdeprecated-copy warning

parent af4656eb
......@@ -71,6 +71,15 @@ public:
m_name = rhs.name();
}
KoID &operator=(const KoID &rhs)
{
if (this != &rhs) {
m_id = rhs.m_id;
m_name = rhs.name();
}
return *this;
}
QString id() const
{
return m_id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment