Creates a shallow copy of the given connection.
Allows to pass connection handles around by value, similar to QString thus avoiding problems like dangling pointers in application code
|other ||the connection to copy from|
- a reference to this instance as required by assigment operator semantics
Definition at line 166 of file qdbusconnection.cpp.
QDBusConnectionPrivate* old = d;
d = other.d;
if (old && !old->ref.deref())