Commit d048545f authored by Max Kellermann's avatar Max Kellermann

lib/dbus/Connection: add DBusConnection& cast operator

parent aea6d354
......@@ -76,6 +76,10 @@ public:
return c;
}
operator DBusConnection &() noexcept {
return *c;
}
operator bool() const noexcept {
return c != nullptr;
}
......
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