mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
libnm: drop some unnecessary direct_string_allow_empty
"nm_setting_hsr_get_port1" is new API and verify() already enforces that the strings are not empty. The flag is redundant. Also drop it from a few other places, where it's redundant.
This commit is contained in:
parent
8062d04cd4
commit
f766ec0a16
|
@ -2021,8 +2021,7 @@ nm_setting_connection_class_init(NMSettingConnectionClass *klass)
|
|||
.from_dbus_is_full = TRUE,
|
||||
.from_dbus_direct_allow_transform = TRUE),
|
||||
NMSettingConnectionPrivate,
|
||||
id,
|
||||
.direct_string_allow_empty = TRUE);
|
||||
id);
|
||||
|
||||
/**
|
||||
* NMSettingConnection:uuid:
|
||||
|
@ -2065,8 +2064,7 @@ nm_setting_connection_class_init(NMSettingConnectionClass *klass)
|
|||
PROP_UUID,
|
||||
NM_SETTING_PARAM_FUZZY_IGNORE,
|
||||
NMSettingConnectionPrivate,
|
||||
uuid,
|
||||
.direct_string_allow_empty = TRUE);
|
||||
uuid);
|
||||
|
||||
/**
|
||||
* NMSettingConnection:stable-id:
|
||||
|
|
|
@ -209,8 +209,7 @@ nm_setting_hsr_class_init(NMSettingHsrClass *klass)
|
|||
PROP_PORT1,
|
||||
NM_SETTING_PARAM_INFERRABLE,
|
||||
NMSettingHsr,
|
||||
_priv.port1,
|
||||
.direct_string_allow_empty = TRUE);
|
||||
_priv.port1);
|
||||
|
||||
/**
|
||||
* NMSettingHsr:port2:
|
||||
|
@ -225,8 +224,7 @@ nm_setting_hsr_class_init(NMSettingHsrClass *klass)
|
|||
PROP_PORT2,
|
||||
NM_SETTING_PARAM_INFERRABLE,
|
||||
NMSettingHsr,
|
||||
_priv.port2,
|
||||
.direct_string_allow_empty = TRUE);
|
||||
_priv.port2);
|
||||
|
||||
/**
|
||||
* NMSettingHsr:multicast-spec:
|
||||
|
|
Loading…
Reference in a new issue