summaryrefslogtreecommitdiff
path: root/src/gdbusxx/gdbus-cxx-bridge.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdbusxx/gdbus-cxx-bridge.h')
-rw-r--r--src/gdbusxx/gdbus-cxx-bridge.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gdbusxx/gdbus-cxx-bridge.h b/src/gdbusxx/gdbus-cxx-bridge.h
index 131478ba..9eeefc9f 100644
--- a/src/gdbusxx/gdbus-cxx-bridge.h
+++ b/src/gdbusxx/gdbus-cxx-bridge.h
@@ -197,6 +197,13 @@ class DBusConnectionPtr : public boost::intrusive_ptr<GDBusConnection>
m_name(other.m_name)
{}
+ DBusConnectionPtr & operator = (const DBusConnectionPtr &other)
+ {
+ *static_cast<boost::intrusive_ptr<GDBusConnection> *>(this) = static_cast<const boost::intrusive_ptr<GDBusConnection> &>(other);
+ m_name = other.m_name;
+ return *this;
+ }
+
GDBusConnection *reference(void) throw()
{
GDBusConnection *conn = get();