forked from enlightenment/efl
eo-cxx: Fix assignment operator for eo::concrete
This commit is contained in:
parent
151d7a6517
commit
192c7e35f6
|
@ -102,8 +102,8 @@ struct concrete
|
|||
|
||||
concrete& operator=(concrete&& other)
|
||||
{
|
||||
concrete tmp(other);
|
||||
std::swap(*this, tmp);
|
||||
concrete tmp(std::move(other));
|
||||
swap(tmp);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
@ -140,6 +140,15 @@ struct concrete
|
|||
{
|
||||
return _eo_raw;
|
||||
}
|
||||
|
||||
friend void swap(concrete& lhs, concrete& rhs)
|
||||
{
|
||||
lhs.swap(rhs);
|
||||
}
|
||||
void swap(concrete& other)
|
||||
{
|
||||
std::swap(_eo_raw, other._eo_raw);
|
||||
}
|
||||
protected:
|
||||
Eo* _eo_raw; ///< The opaque <em>EO Object</em>.
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue