From: Reto Buerki Date: Wed, 7 Oct 2020 13:43:10 +0000 (+0200) Subject: Do not force initialization of Connection_Type X-Git-Tag: v0.6.0~5 X-Git-Url: https://git.codelabs.ch/?p=dbus-ada.git;a=commitdiff_plain;h=924b4aea3216c9fbe1c1b0dc5f47d5b7f3632ceb;ds=inline Do not force initialization of Connection_Type Be less strict and allow the declaration of an 'unconnected' connection. This is e.g. required to use the type in a record field (which is perfectly legal if the record is constructed correctly). --- diff --git a/src/d_bus-connection.ads b/src/d_bus-connection.ads index 84f8692..e331b56 100644 --- a/src/d_bus-connection.ads +++ b/src/d_bus-connection.ads @@ -35,7 +35,7 @@ with D_Bus.Types; package D_Bus.Connection is - type Connection_Type (<>) is limited private; + type Connection_Type is limited private; -- D-Bus connection. function Connect (Bus : Bus_Type := Bus_Session) return Connection_Type;