lib/dbus/Connection: add DBusConnection& cast operator

This commit is contained in:
Max Kellermann 2018-06-04 12:20:41 +02:00
parent aea6d354b7
commit d048545f1a
1 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,10 @@ public:
return c;
}
operator DBusConnection &() noexcept {
return *c;
}
operator bool() const noexcept {
return c != nullptr;
}