lib/dbus/Connection: add DBusConnection& cast operator
This commit is contained in:
parent
aea6d354b7
commit
d048545f1a
|
@ -76,6 +76,10 @@ public:
|
|||
return c;
|
||||
}
|
||||
|
||||
operator DBusConnection &() noexcept {
|
||||
return *c;
|
||||
}
|
||||
|
||||
operator bool() const noexcept {
|
||||
return c != nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue