mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 01:47:58 +02:00
refstr: drop "const" from argument of NM_IS_REF_STRING()
NMRefString has only const fields itself, and all operations (except ref/unref) don't mutate the instance. As such, the type is already immutable, and using "const" is redundant and unnecessary. Drop "const" from all API of NMRefString.
This commit is contained in:
parent
571fdaafac
commit
51ff2865c3
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ nm_ref_string_equals_str(NMRefString *rstr, const char *s)
|
|||
}
|
||||
|
||||
static inline gboolean
|
||||
NM_IS_REF_STRING(const NMRefString *rstr)
|
||||
NM_IS_REF_STRING(NMRefString *rstr)
|
||||
{
|
||||
#if NM_MORE_ASSERTS > 10
|
||||
if (rstr) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue