diff options
author | David Robillard <d@drobilla.net> | 2021-05-29 17:12:02 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-05-31 11:37:53 -0400 |
commit | 9aa0c922b503f9b1f7f22add0afe19638bba7e9b (patch) | |
tree | 73e639bee2fd1cb9d06a1bd5770803ecf6ca5e7e /src/reader.h | |
parent | 624accde94a105213dc3562606c638d9620e7a72 (diff) | |
download | serd-9aa0c922b503f9b1f7f22add0afe19638bba7e9b.tar.gz serd-9aa0c922b503f9b1f7f22add0afe19638bba7e9b.tar.bz2 serd-9aa0c922b503f9b1f7f22add0afe19638bba7e9b.zip |
Make most function parameters const
More const never hurts in general, but in particular this allows the compiler
to make better nullability deductions, which reduces the amount of manual
nullability casting required.
Diffstat (limited to 'src/reader.h')
-rw-r--r-- | src/reader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.h b/src/reader.h index 3a8991f4..e67f8cc2 100644 --- a/src/reader.h +++ b/src/reader.h @@ -98,7 +98,7 @@ Ref push_node(SerdReader* reader, SerdType type, const char* str, size_t n_bytes); SERD_PURE_FUNC size_t -genid_size(SerdReader* reader); +genid_size(const SerdReader* reader); Ref blank_id(SerdReader* reader); |