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