basic/set: constify operations which don't modify Set

No functional change, but it's nicer to the reader.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-07-19 16:51:14 +02:00
parent f4c43a8115
commit 3c4e303136
4 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -733,8 +733,8 @@ bool internal_hashmap_iterate(HashmapBase *h, Iterator *i, void **value, const v
return true;
}
bool set_iterate(Set *s, Iterator *i, void **value) {
return internal_hashmap_iterate(HASHMAP_BASE(s), i, value, NULL);
bool set_iterate(const Set *s, Iterator *i, void **value) {
return internal_hashmap_iterate(HASHMAP_BASE((Set*) s), i, value, NULL);
}
#define HASHMAP_FOREACH_IDX(idx, h, i) \