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