I was browsing Qt sources, and noticed this
QUuid &operator=(const GUID &guid)
{
*this = QUuid(guid);
return *this;
}
I've never seen assignment to "this" before. What does assignment to "this" do?
That is not an assignment to this but to the object pointed by this. That will effectively call operator=( QUuid const & ) on the current object.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With