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:
Thomas Haller 2021-03-18 08:43:22 +01:00
parent 571fdaafac
commit 51ff2865c3
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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) {