mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-07 05:10:36 +01:00
shared: rename local variable in _NM_GET_PRIVATE_PTR() macro
The _NM_GET_PRIVATE_PTR() macro is possibly used from other macros. And "_self" is a pretty good name to use. Don't let the lower layer macro use this name.
This commit is contained in:
parent
8c23586a77
commit
333e6f66fb
1 changed files with 2 additions and 2 deletions
|
|
@ -1079,9 +1079,9 @@ NM_GOBJECT_PROPERTIES_DEFINE_NOTIFY (obj_type, obj_properties, _PropertyEnums, P
|
|||
#if _NM_CC_SUPPORT_AUTO_TYPE
|
||||
#define _NM_GET_PRIVATE_PTR(self, type, is_check, ...) \
|
||||
({ \
|
||||
_nm_auto_type _self = NM_GOBJECT_CAST_NON_NULL (type, (self), is_check, ##__VA_ARGS__); \
|
||||
_nm_auto_type _self_get_private = NM_GOBJECT_CAST_NON_NULL (type, (self), is_check, ##__VA_ARGS__); \
|
||||
\
|
||||
NM_PROPAGATE_CONST (_self, _self->_priv); \
|
||||
NM_PROPAGATE_CONST (_self_get_private, _self_get_private->_priv); \
|
||||
})
|
||||
#else
|
||||
#define _NM_GET_PRIVATE_PTR(self, type, is_check, ...) (NM_GOBJECT_CAST_NON_NULL (type, (self), is_check, ##__VA_ARGS__)->_priv)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue