Cleanup: Use const arguments

This commit is contained in:
Hans Goudey 2021-04-02 00:04:53 -05:00
parent d91fec1a85
commit 77f6857740
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ struct Collection *BKE_collection_object_find(struct Main *bmain,
struct Scene *scene,
struct Collection *collection,
struct Object *ob);
bool BKE_collection_is_empty(struct Collection *collection);
bool BKE_collection_is_empty(const struct Collection *collection);
bool BKE_collection_object_add(struct Main *bmain,
struct Collection *collection,

View File

@ -1007,7 +1007,7 @@ Collection *BKE_collection_object_find(Main *bmain,
return NULL;
}
bool BKE_collection_is_empty(Collection *collection)
bool BKE_collection_is_empty(const Collection *collection)
{
return BLI_listbase_is_empty(&collection->gobject) &&
BLI_listbase_is_empty(&collection->children);